Quick actions

cmd+k|ctrl+k

Navigation

Languages

Bash Utilities

Snippet info

Language

Bash

Visibility

public

Author

some

Created

2016-04-27T13:31:41Z

Updated

2016-04-27T13:37:45Z

#!bin/bash

function check_root {
$ROOT_ID="0";

if [ $ROOT_ID -ne $UID ]; then
    echo "please run as root";
    exit 1
fi
}
INFO