add dummy sudo

master
TomasM 2019-11-17 09:44:11 +00:00
parent 8db5cb64a2
commit 82555a7ec4
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#!/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."