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>
(cherry picked from commit 0199a7ee71)

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2009-11-15 20:24:24 +10:00 committed by Dan McGee
parent a12ed63545
commit 0c3f502064
1 changed files with 2 additions and 2 deletions

View File

@ -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"