summaryrefslogtreecommitdiffstats
path: root/desktop/BlockstreamGreen/BlockstreamGreen
blob: 10b936f66252388d53a38c61141f4ce8da9d9d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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