From: Ben Gras Date: Fri, 19 Apr 2013 10:24:50 +0000 (+0000) Subject: run script: correction, clarity X-Git-Tag: v3.3.0~1023 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=0245723d5f304f6bfe8ee9cfa94ad216dea78c8b;p=minix.git run script: correction, clarity Change-Id: Ibf583c6277c67646dd90d7c49482daf4e76b78b6 --- diff --git a/test/run b/test/run index 122e51786..9bf5c94cb 100755 --- a/test/run +++ b/test/run @@ -28,12 +28,13 @@ alltests=" 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \ sh1.sh sh2.sh interp.sh" tests_no=`expr 0` -# Directory must be owned by bin -[ "$ROOT" ] || chown bin . - # If root, make sure the setuid tests have the correct permissions -[ "$ROOT" ] && chown root ${setuids} -[ "$ROOT" ] && chmod 4755 ${setuids} +# and make the dir bin-owned. +if [ "$ROOT" ] +then chown bin . + chown root ${setuids} + chmod 4755 ${setuids} +fi tests=$alltests