From 0c3f5020645ab5ab28113322e33abdeeb2b34a63 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 15 Nov 2009 20:24:24 +1000 Subject: contrib/bacman: fix checking if file has been added Fixes FS#17140. Signed-off-by: Allan McRae Signed-off-by: Dan McGee (cherry picked from commit 0199a7ee717f0848e336fda8dc1f5b9364ce3478) Signed-off-by: Dan McGee --- contrib/bacman | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib') diff --git a/contrib/bacman b/contrib/bacman index 22940ecb..dfd53e8b 100755 --- a/contrib/bacman +++ b/contrib/bacman @@ -21,7 +21,7 @@ # readonly progname="bacman" -readonly progver="0.2.0" +readonly progver="0.2.1" # # User Friendliness @@ -137,7 +137,7 @@ while read i; do bsdtar -cnf - "/$i" 2> /dev/null | bsdtar -xpf - # Workaround to bsdtar not reporting a missing file as an error - if [ ! -e "$work_dir/$i" ] && [ -L "$work_dir/$i"]; then + if [ ! -e "$work_dir/$i" -a ! -L "$work_dir/$i" ]; then echo "" echo "ERROR: unable to add /$i to the package" echo " If your user does not have permssion to read this file then" -- cgit v1.2.3-24-g4f1b