mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-07-22 02:48:02 +00:00
fix(scripts): bash also uses /proc/self/fd
... instead of /dev/fd for <(...) ref: https://github.com/apernet/hysteria/issues/678
This commit is contained in:
@@ -294,7 +294,7 @@ rerun_with_sudo() {
|
||||
|
||||
local _target_script
|
||||
|
||||
if has_prefix "$0" "/dev/fd/"; then
|
||||
if has_prefix "$0" "/dev/" || has_prefix "$0" "/proc/"; then
|
||||
local _tmp_script="$(mktemp)"
|
||||
chmod +x "$_tmp_script"
|
||||
|
||||
|
Reference in New Issue
Block a user