]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - scripts/coccicheck
Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux.git] / scripts / coccicheck
index 9fedca611b7f8c7e7835a4ce36f793eb7ec41754..e04d328210ac2bd55c946230f2c8f3a9fc2ba38d 100755 (executable)
@@ -128,9 +128,10 @@ run_cmd_parmap() {
        fi
        echo $@ >>$DEBUG_FILE
        $@ 2>>$DEBUG_FILE
-       if [[ $? -ne 0 ]]; then
+       err=$?
+       if [[ $err -ne 0 ]]; then
                echo "coccicheck failed"
-               exit $?
+               exit $err
        fi
 }