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

8 lines
82 B
Bash
Executable File

#!/bin/sh
if [ "$(id -u)" -eq "0" ]; then
"$@"
else
sudo -u root "$@"
fi