dotfiles/unprocessed/termux/scripts/sudo

12 lines
143 B
Plaintext
Raw Permalink Normal View History

2017-09-17 13:36:17 +02:00
#!/data/data/com.termux/files/usr/bin/bash
#
# Substitution for sudo
#
2017-09-17 16:34:37 +02:00
if [ "$(whoami)" != 'root' ]
then
echo "$@" | tsu
else
"$@"
fi