]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Return the result of the last command explicitly. The script seems to work
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 17 Mar 2009 04:44:17 +0000 (22:44 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Tue, 17 Mar 2009 04:44:17 +0000 (22:44 -0600)
fine without this code, but it might make things more clear.

Hopefully, $? is no less portable than implicit result return. We can replace
$?  with an if-statement if $? is not portable.

test-suite/buildtest.sh

index 8c813562b88c4b5aba3d9c8f22b3c7f92189c82e..873dbf85b22a428f4c76564903cb1f3b8f6a1903 100755 (executable)
@@ -36,9 +36,13 @@ fi
 #
 # above command currently encounters dependancy problems on cleanup.
 #
+# do not build any of the install's ...
 rm -f -r src/fs/aufs/.deps src/fs/diskd/.deps &&
        $base/../configure --silent ${OPTS} 2>&1 &&
        make ${pjobs} check 2>&1 &&
        make ${pjobs} 2>&1
 
-# do not build any of the install's ...
+# Remember and then explicitly return the result of the last command
+# to the script caller. Probably not needed on most or all platforms.
+result=$?
+exit ${result}