I have a script with case, functions and if statements. Then I want to create an option that when the user press the enter button it starts the script right at the top.
This what I have done:
read -p "Enter to continue" enter key=$(~/folder/script) if [[ $enter = "" ]]; then $key else echo "Wrong key!" fi