From 20d4a3756be1d8f8abea0bb91b3ee27cf039f528 Mon Sep 17 00:00:00 2001 From: Jon Shaulis Date: Mon, 28 Nov 2016 20:29:13 -0500 Subject: [PATCH] Fix tilde issue --- extras/installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/installer.sh b/extras/installer.sh index cad3c19..e10d2fa 100755 --- a/extras/installer.sh +++ b/extras/installer.sh @@ -277,8 +277,8 @@ fi echo read -e -p "Directory to install into: " -i "/opt/plexupdate" FULL_PATH -if [[ "$FULL_PATH" == *"~"* ]]; then # If path contains a tilde - FULL_PATH=${FULL_PATH/[~]/$HOME} # Replace tilde with the home path +if [[ "$FULL_PATH" == *"~"* ]]; then + abort "Invalid character in path, cannot continue" fi if [ ! -d "$FULL_PATH" ]; then echo -n "'$FULL_PATH' doesn't exist, attempting to create... "