Hi there --
Thanks for your reply. I inserted the following if...else statement in the script:
Code:
# Confirm the directory that was entered is the correct one
echo "Is this the correct directory? [y/n]"
if ["$read" = "y"]; then
cd $path
else
exit 1;
fi
When I run the script, I am prompted for the directory, but after I insert the data, I get the following error message:
Quote:
Please enter the full path of the directory:
/tmp
Is this the correct directory? [y/n]
./encrypted_tar_backup[24]: test: A ] character is missing.
|
I didn't mention this earlier, but I am currently using the sh shell within the script.