Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.51 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Print README FILE
  4. dialog --textbox README 0 0
  5.  
  6. # Ask to Continue
  7. dialog --yesno 'Continue?' 0 0
  8.  
  9. # Exit if no was selected
  10. if [ $? -eq 1 ]; then
  11.     clear
  12.     exit 1
  13. fi
  14.  
  15. # Ask for installation place
  16. dialog --inputbox 'Where you want to install?' 0 0 2>tmp_file
  17.  
  18. OUTPUT=`cat tmp_file`
  19.  
  20. mkdir $OUTPUT
  21.  
  22. # Install something
  23. cp 'whoisalive.sh' $OUTPUT'/whoisalive.sh'
  24.  
  25. # Give permisions
  26. chmod +x $OUTPUT'/whoisalive.sh'
  27.  
  28. # Clear and prompt
  29. clear
  30. rm tmp_file
  31. echo 'Installation completed'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement