Jak sprawić, by skrypt bash musi zostać uruchomiony w Sudo
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "Not running as root"
exit
fi
Adventurous Anteater
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "Not running as root"
exit
fi