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:
parent
5752e276fb
commit
d32f6daa66
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue