mirror of
https://github.com/apernet/hysteria.git
synced 2025-04-03 04:27:39 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue