fix: shellify scripts
This commit is contained in:
parent
dbbd90b74d
commit
a189c31485
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
ORIGIN_PWD="$PWD"
|
||||
|
||||
if ! [ "$UID" = "0" ]; then
|
||||
if ! [ "$(id -u)" = "0" ]; then
|
||||
echo "please perform as root, attempting to escalate privileges..."
|
||||
exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g')
|
||||
exit 1
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! [ "$UID" = "0" ]; then
|
||||
if ! [ "$(id -u)" = "0" ]; then
|
||||
echo "please perform as root, attempting to escalate privileges..."
|
||||
exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g')
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue