Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 152 Bytes
function check_user_root {
if [ ! "`whoami`" = "root" ]; then
echo "Not running as root.
exit 1 ;
fi
}