Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Print README FILE
- dialog --textbox README 0 0
- # Ask to Continue
- dialog --yesno 'Continue?' 0 0
- # Exit if no was selected
- if [ $? -eq 1 ]; then
- clear
- exit 1
- fi
- # Ask for installation place
- dialog --inputbox 'Where you want to install?' 0 0 2>tmp_file
- OUTPUT=`cat tmp_file`
- mkdir $OUTPUT
- # Install something
- cp 'whoisalive.sh' $OUTPUT'/whoisalive.sh'
- # Give permisions
- chmod +x $OUTPUT'/whoisalive.sh'
- # Clear and prompt
- clear
- rm tmp_file
- echo 'Installation completed'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement