dotfiles/termux/scripts/sudo

12 lines
143 B
Plaintext
Raw Normal View History

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