script de bash de verificación raíz
#!/usr/bin/env bash
if [[ "$(id -u)" -ne 0 ]]; then
# Code
echo "Please, Check Root "
exit 1
fi
function main() {
echo "Complete!"
exit 1
}
main
Perfect Pig