mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-29 13:00:32 +01:00
88f3f29fc7
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
22 lines
393 B
Bash
22 lines
393 B
Bash
#!/bin/sh
|
|
# Slackware wrapper for the Blockstream Green AppImage.
|
|
runme(){
|
|
cd /opt/BlockstreamGreen
|
|
./BlockstreamGreen-x86_64.AppImage "$@"
|
|
}
|
|
|
|
if [ $UID == 0 ]; then
|
|
read -p "You are currently running as root...\
|
|
Are you sure you want to proceed? (N/y): " resp
|
|
case "$resp" in
|
|
y|yes)
|
|
runme
|
|
;;
|
|
*)
|
|
echo Exiting
|
|
exit 0
|
|
;;
|
|
esac
|
|
else
|
|
runme $@
|
|
fi
|