fix H7138: sys/unix/setup.sh fails with no arguments

Sanity check was in the wrong place.
This commit is contained in:
keni
2018-05-15 16:30:28 -04:00
parent c2103b84db
commit f810a45dc1
+5 -5
View File
@@ -23,13 +23,13 @@ x) hints=/dev/null
;; ;;
*) hints=$prefix/$1 *) hints=$prefix/$1
hfile=$1 hfile=$1
;; # sanity check
esac if [ ! -f "$hints" ]; then
if [ ! -f "$hints" ]; then
echo "Cannot find hints file $hfile" echo "Cannot find hints file $hfile"
exit 1 exit 1
fi fi
;;
esac
/bin/sh ./mkmkfile.sh Makefile.top TOP ../../Makefile $hints $hfile /bin/sh ./mkmkfile.sh Makefile.top TOP ../../Makefile $hints $hfile
/bin/sh ./mkmkfile.sh Makefile.dat DAT ../../dat/Makefile $hints $hfile /bin/sh ./mkmkfile.sh Makefile.dat DAT ../../dat/Makefile $hints $hfile