]> CyberLeo.Net >> Repos - CDN/Mosi.git/blob - script/lib/root.sh
script/makepkg: exclude current port from port_available_deps; sort output too
[CDN/Mosi.git] / script / lib / root.sh
1 # Only allow the script to continue if running as root
2
3 if [ -z "${__root_sh_loaded}" ]
4 then
5   __root_sh_loaded=yes
6   
7   if [ "$(id -u)" -gt 0 ]
8   then
9     want ansi
10     echo ""
11     echo "${a_red}I need root!${a_normal}"
12     echo ""
13     exit 1
14   fi
15 fi