dotfiles/unprocessed/termux/scripts/sudo
Geoffrey Frogeye ee178b7d57
nix: Make nix the root
Which means now I'll have to think about real prefixes in commit names.
2023-11-26 23:58:22 +01:00

12 lines
143 B
Bash
Executable file

#!/data/data/com.termux/files/usr/bin/bash
#
# Substitution for sudo
#
if [ "$(whoami)" != 'root' ]
then
echo "$@" | tsu
else
"$@"
fi