#!/bin/bash
if [[ $(id -u) = 0 ]]; then
exit 0
fi
[[ $1 = "-q" ]] || echo 'error: this script must be run with root privileges'
exit 1
if [[ $(id -u) = 0 ]]; then
exit 0
fi
[[ $1 = "-q" ]] || echo 'error: this script must be run with root privileges'
exit 1
No comments:
Post a Comment