Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2009-11-15 20:24:24 +1000
committerDan McGee <dan@archlinux.org>2009-11-15 19:18:56 -0600
commit0199a7ee717f0848e336fda8dc1f5b9364ce3478 (patch)
treeebd52234b7e0a71e11ee1559274b504f206abacf /contrib
parent88706168f2fb9ccd91f97b4647b715cc9076d5ed (diff)
contrib/bacman: fix checking if file has been added
Fixes FS#17140. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/bacman4
1 files changed, 2 insertions, 2 deletions
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"