Clean up error message on tilde use

This commit is contained in:
Alex Malinovich 2016-11-28 17:43:46 -08:00 committed by Henric Andersson
commit b4dd206a40

View file

@ -277,9 +277,13 @@ fi
echo
read -e -p "Directory to install into: " -i "/opt/plexupdate" FULL_PATH
if [[ "$FULL_PATH" == *"~"* ]]; then
abort "Invalid character in path, cannot continue"
fi
while [[ "$FULL_PATH" == *"~"* ]]; do
echo "Using '~' in your path can cause problems, please type out the full path instead"
echo
read -e -p "Directory to install into: " -i "/opt/plexupdate" FULL_PATH
done
if [ ! -d "$FULL_PATH" ]; then
echo -n "'$FULL_PATH' doesn't exist, attempting to create... "
if ! mkdir -p "$FULL_PATH" 2>/dev/null; then