From 957746875d0cbe45cc344178811cd1a045dba05a Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Tue, 5 Apr 2016 14:02:06 +0100 Subject: [PATCH] highlight failed downloads Signed-off-by: Justin Cormack --- licensing/license.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/licensing/license.sh b/licensing/license.sh index 60492a7f4..126eb4b41 100755 --- a/licensing/license.sh +++ b/licensing/license.sh @@ -1,8 +1,7 @@ #!/bin/bash fail() { - printf $1 - printf "\n" + printf "\e[31m$1 \e[0m\n" exit 1 } @@ -41,7 +40,7 @@ do then f=$(echo $f | sed 's/^.*:://') printf "looking for source for: $f\n" - if [ -f $f ] + if [ -f "$f" ] then cp -a $f "$srcdir"/$pkgname-$pkgver/ else @@ -71,4 +70,4 @@ cd /output/aufs-util git checkout "$AUFS_TOOLS_COMMIT" rm -rf .git -printf "All source code now in output/ directory\n' +printf "All source code now in output/ directory\n"