From bdea86afa25b755c77eecbe08c490cabbed6b363 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 13 Dec 2024 14:23:40 -0800 Subject: [PATCH] Set the temp dir after we've checked return status from cat --- setup.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index 2c12b9615..cbcf4786e 100755 --- a/setup.sh +++ b/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 "****************************************************************************"