mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Set the temp dir after we've checked return status from cat
This commit is contained in:
11
setup.sh
11
setup.sh
@@ -22,16 +22,17 @@ fi
|
||||
srcdir=$wadir
|
||||
ver=`cat "$wadir/version"`
|
||||
|
||||
# Find temp directory
|
||||
if [ "$tempdir" = "" ]; then
|
||||
tempdir=/tmp/.webmin
|
||||
fi
|
||||
|
||||
if [ $? != "0" ]; then
|
||||
echo "ERROR: Cannot find the Webmin install directory";
|
||||
echo "";
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Find temp directory
|
||||
if [ "$tempdir" = "" ]; then
|
||||
tempdir=/tmp/.webmin
|
||||
fi
|
||||
|
||||
echo "****************************************************************************"
|
||||
echo " Welcome to the Webmin setup script, version $ver"
|
||||
echo "****************************************************************************"
|
||||
|
||||
Reference in New Issue
Block a user