Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/makepkg.sh.in
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-05-15 21:06:42 +0200
committerDan McGee <dan@archlinux.org>2010-05-18 11:29:05 -0500
commitd32f6daa66a454ea41574667d44a2f6c36d4f77e (patch)
treea7edbdc064a1541e8c04fae79eb967af89cd4785 /scripts/makepkg.sh.in
parent5752e276fb585d07bd0f8e8b2a1f2827afdf2799 (diff)
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>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r--scripts/makepkg.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index e8aaa8b7..97418796 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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"