]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
exit-77 before the trap, not after, if we fail
authorJim Meyering <jim@meyering.net>
Wed, 7 Dec 2005 08:08:08 +0000 (08:08 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 7 Dec 2005 08:08:08 +0000 (08:08 +0000)
to create a temporary directory on another partition.

tests/mv/acl

index ef50187597ab360ac69877fe10080aeccdc1d7d7..e867e827b183b8224db73b3b6800062387cf00c9 100755 (executable)
@@ -14,14 +14,15 @@ if test "$VERBOSE" = yes; then
   setfacl --version
 fi
 
+if test -z "$other_partition_tmpdir"; then
+  (exit 77); exit 77
+fi
+
 pwd=`pwd`
 t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
 trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
 trap '(exit $?); exit $?' 1 2 13 15
 
-if test -z "$other_partition_tmpdir"; then
-  (exit 77); exit 77
-fi
 t0="$t0 $other_partition_tmpdir"
 
 framework_failure=0