1
0
mirror of https://github.com/QSCTech/zjunet.git synced 2026-01-22 11:44:48 +08:00
zjunet/lib/sudo.sh

8 lines
79 B
Bash
Raw Normal View History

#!/bin/sh
if [ "$(id -u)" -eq "0" ]; then
"$@"
else
2014-10-13 21:18:58 +08:00
sudo -u root "$@"
fi