fix: shellify scripts

This commit is contained in:
Strix 2023-10-22 17:49:57 +02:00
parent dbbd90b74d
commit a189c31485
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
ORIGIN_PWD="$PWD" ORIGIN_PWD="$PWD"
if ! [ "$UID" = "0" ]; then if ! [ "$(id -u)" = "0" ]; then
echo "please perform as root, attempting to escalate privileges..." echo "please perform as root, attempting to escalate privileges..."
exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g') exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g')
exit 1 exit 1

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
if ! [ "$UID" = "0" ]; then if ! [ "$(id -u)" = "0" ]; then
echo "please perform as root, attempting to escalate privileges..." echo "please perform as root, attempting to escalate privileges..."
exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g') exec sudo $(cat /proc/$$/cmdline | sed 's/\x00/ /g')
exit 1 exit 1