mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Tilde in directory name breaks mkdir
This commit is contained in:
parent
5a485b7192
commit
911fc8a3ef
1 changed files with 3 additions and 0 deletions
|
@ -277,6 +277,9 @@ fi
|
||||||
|
|
||||||
echo
|
echo
|
||||||
read -e -p "Directory to install into: " -i "/opt/plexupdate" FULL_PATH
|
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
|
||||||
|
fi
|
||||||
if [ ! -d "$FULL_PATH" ]; then
|
if [ ! -d "$FULL_PATH" ]; then
|
||||||
echo -n "'$FULL_PATH' doesn't exist, attempting to create... "
|
echo -n "'$FULL_PATH' doesn't exist, attempting to create... "
|
||||||
if ! mkdir -p "$FULL_PATH" 2>/dev/null; then
|
if ! mkdir -p "$FULL_PATH" 2>/dev/null; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue