fix for incorrect checking of return code, which causes syntax errors

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dieter Plaetinck 2010-05-15 21:06:42 +02:00 committed by Dan McGee
parent 5752e276fb
commit d32f6daa66
1 changed files with 2 additions and 2 deletions

View File

@ -693,10 +693,10 @@ extract_sources() {
local ret=0
msg2 "$(gettext "Extracting %s with %s")" "$file" "$cmd"
if [[ $cmd = bsdtar ]]; then
$cmd -xf "$file" || ret=?
$cmd -xf "$file" || ret=$?
else
rm -f "${file%.*}"
$cmd -dcf "$file" > "${file%.*}" || ret=?
$cmd -dcf "$file" > "${file%.*}" || ret=$?
fi
if (( ret )); then
error "$(gettext "Failed to extract %s")" "$file"