From 93589330903c1f3b9c2cebc2be44325130a39f29 Mon Sep 17 00:00:00 2001 From: Alex Malinovich Date: Mon, 28 Nov 2016 17:43:46 -0800 Subject: [PATCH] Clean up error message on tilde use --- extras/installer.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/extras/installer.sh b/extras/installer.sh index e10d2fa..e71d7d9 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -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