-
-
Save anonymous/7562cb8a54f711b27a939923732180db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if test $# -eq 0 | |
then | |
echo 'su was not passed arguments, doing `su -` instead ...' >/dev/tty | |
exec /bin/su - | |
else | |
echo 'su was passed arguments, not doing `su -` instead ...' >/dev/tty | |
exec /bin/su "$@" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment