Skip to content

Instantly share code, notes, and snippets.

@tilmanschweitzer
Created October 17, 2014 09:46
Show Gist options
  • Save tilmanschweitzer/ed143af30bc74360a396 to your computer and use it in GitHub Desktop.
Save tilmanschweitzer/ed143af30bc74360a396 to your computer and use it in GitHub Desktop.
while [[ ! $RELATIVE_PATH_CHECKED =~ ^[Yy]$ ]]
do
read -p "Is the relative path to the dev folder '${RELATIVE_PATH}' correct? [y/n] " -n 1 -r RELATIVE_PATH_CHECKED
echo ""
if [[ $RELATIVE_PATH_CHECKED =~ ^[Nn]$ ]]
then
read -p "Type in the correct path: " -r RELATIVE_PATH
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment