mirror of https://github.com/ventoy/Ventoy.git
Always use /bin/bash to launch VentoyPlugson.sh (#1809)
This commit is contained in:
parent
13eb9829fa
commit
36c21a21e4
|
@ -17,6 +17,15 @@ if [ $uid -ne 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [ "$1" = "__vbash__" ]; then
|
||||
shift
|
||||
else
|
||||
if readlink /bin/sh | grep -q bash; then
|
||||
:
|
||||
else
|
||||
exec /bin/bash $0 "__vbash__" "$@"
|
||||
fi
|
||||
fi
|
||||
|
||||
OLDDIR=$(pwd)
|
||||
|
||||
|
|
Loading…
Reference in New Issue