Fix tilde issue

This commit is contained in:
Jon Shaulis 2016-11-28 20:29:13 -05:00
commit 114a42271f

View file

@ -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... "