diff --git a/restore.sh b/restore.sh index 22f76f5..0f85796 100755 --- a/restore.sh +++ b/restore.sh @@ -37,7 +37,7 @@ echo "-------------------------------------------------------------------------- export BASEDIR=$PWD export HOMEDIR=$HOME export ENVDIR=$1 -if [ ! -d "$BASEDIR/configurations/$ENVDIR" ]; then +if [ ! -f "$BASEDIR/configurations/$ENVDIR" ]; then echo "ERROR: Invalid environment directory" exit 1 fi