diff --git a/scripts/makepkg b/scripts/makepkg index a9e3291..6b91d4d 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -95,9 +95,10 @@ Fextract() { if [ "$cmd" != "" ]; then msg2 "$cmd" $cmd - if [ $? -ne 0 ]; then + ret=$? + if [ $ret -ne 0 ]; then # unzip will return a 1 as a warning, it is not an error - if [ "$unziphack" != "1" -o $? -ne 1 ]; then + if [ "$unziphack" != "1" -o $ret -ne 1 ]; then error "Failed to extract ${file}" msg "Aborting..." Fdie