]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Use ../envvar-check rather than open-coding the same tests.
authorJim Meyering <jim@meyering.net>
Sat, 17 Mar 2001 22:15:54 +0000 (22:15 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 17 Mar 2001 22:15:54 +0000 (22:15 +0000)
tests/install/create-leading

index 8bcba57ae6ff72b9fb58420d69c825fa38048895..963e6a135d23500331b1b94f573fbde24f55be14 100755 (executable)
@@ -8,26 +8,14 @@ if test "$VERBOSE" = yes; then
   ginstall --version
 fi
 
+. $srcdir/../envvar-check
+
 pwd=`pwd`
 dir=install-D$$
 
 trap "cd $pwd; rm -rf $dir" 0 1 2 3 15
 
 mkdir $dir
-unset VERSION_CONTROL SIMPLE_BACKUP_SUFFIX
-
-if test "${VERSION_CONTROL+set}" = set; then
-  echo '$0: the VERSION_CONTROL envvar is set --' \
-    ' unset it and rerun this test' >&2
-  exit 1
-fi
-
-if test "${SIMPLE_BACKUP_SUFFIX+set}" = set; then
-  echo '$0: the SIMPLE_BACKUP_SUFFIX envvar is set --' \
-    ' unset it and rerun this test' >&2
-    >&2
-  exit 1
-fi
 
 fail=0
 cd $dir