mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-23 13:19:54 +00:00
Fix the failure in finding the executing user's ID during install (#18508) ##build
The `UID` variable used previously is a Bash extension that isn't present on all POSIX shells.
This commit is contained in:
parent
dcfd5fed5f
commit
6d21fcfe8b
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ "$UID" = 0 ]; then
|
||||
if [ "$(id -u)" = 0 ]; then
|
||||
echo "[XX] Do not run this script as root!"
|
||||
if [ -n "${SUDO_USER}" ]; then
|
||||
echo "[--] Downgrading credentials to ${SUDO_USER}"
|
||||
|
Loading…
Reference in New Issue
Block a user