BlockstreamGreen 393 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. # Slackware wrapper for the Blockstream Green AppImage.
  3. runme(){
  4. cd /opt/BlockstreamGreen
  5. ./BlockstreamGreen-x86_64.AppImage "$@"
  6. }
  7. if [ $UID == 0 ]; then
  8. read -p "You are currently running as root...\
  9. Are you sure you want to proceed? (N/y): " resp
  10. case "$resp" in
  11. y|yes)
  12. runme
  13. ;;
  14. *)
  15. echo Exiting
  16. exit 0
  17. ;;
  18. esac
  19. else
  20. runme $@
  21. fi