VOL="~/somepath/script.py"
printf "Drag and drop the '/somepath/vol.py' file on terminal./nPress enter for [/home/$USER/somepath/script.py]"
read directory=${directory:-$VOL}
Given the code above, how can I allow the script user press the ENTER key for a preconfigured path present on the script? In this case it should be /home/somepath/script.py
The one above doesn't work. It gives me a read: 'directory=~/somepath/script.py': not a valid identifier error.
Many thanks in advance!