From: Alex Rousskov Date: Tue, 17 Mar 2009 04:44:17 +0000 (-0600) Subject: Return the result of the last command explicitly. The script seems to work X-Git-Tag: SQUID_3_2_0_1~1119^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=701fabcc4790f6782a8572f07be4d83860d08e75;p=thirdparty%2Fsquid.git Return the result of the last command explicitly. The script seems to work 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. --- diff --git a/test-suite/buildtest.sh b/test-suite/buildtest.sh index 8c813562b8..873dbf85b2 100755 --- a/test-suite/buildtest.sh +++ b/test-suite/buildtest.sh @@ -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}