12 lines
206 B
Bash
Executable File
12 lines
206 B
Bash
Executable File
#!/bin/bash
|
|
if [ "$#" -lt 1 ]; then
|
|
echo "Usage: sudo [command] [arguments]"
|
|
exit 1
|
|
fi
|
|
|
|
if [ "$UID" = 0 ]; then
|
|
exec "$@"
|
|
fi
|
|
|
|
echo "Sudo is not installed. Run the command as root or install sudo."
|