mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-21 05:43:20 -07:00
Clean up error message on tilde use
This commit is contained in:
parent
114a42271f
commit
9358933090
1 changed files with 7 additions and 3 deletions
|
@ -277,9 +277,13 @@ 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
|
|
||||||
abort "Invalid character in path, cannot continue"
|
while [[ "$FULL_PATH" == *"~"* ]]; do
|
||||||
fi
|
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
|
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