Last active
March 1, 2017 04:48
-
-
Save uudashr/c07db28cf6079b45e590534bc98fb5bb to your computer and use it in GitHub Desktop.
Prompt / ask something in shell script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
read -p "Install directory [/root]: " installDir; installDir=${installDir:-/root}; echo $installDir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment