mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 05:13:19 -07:00
Fix tilde issue
This commit is contained in:
parent
3d19b4ee01
commit
114a42271f
1 changed files with 2 additions and 2 deletions
|
@ -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... "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue