summaryrefslogtreecommitdiff
path: root/sisyphus-gui
blob: 0d46356f0c844a19e6e247c87cae0c612a038fae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash

# Sisyphus-GUI is a simple frontend for libsisyphus
# Main Author : Ghiunhan Mamut @ Redcore Linux Project

if [[ -f /lib/gentoo/functions.sh ]] ; then
        source /lib/gentoo/functions.sh
else
        echo "Cannot import Gentoo functions, I will abort now!"
        exit 1
fi

checkifroot() {
	if [[ "$(whoami)" != root ]] ; then
		eerror "I won't do that, unless you're root!"
		exit 1
	fi
}


main() {
	if checkifroot; then
		pushd /usr/share/sisyphus
		python3 sisyphus-gui.py
		popd
	fi
}

main