mirror of
https://github.com/cedar2025/hysteria.git
synced 2025-06-08 21:39:56 +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:
parent
9b8f914eab
commit
0fe42d41d6
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user