mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-05-24 20:14:33 -04:00
Always use /bin/bash to launch VentoyPlugson.sh (#1809)
This commit is contained in:
parent
13eb9829fa
commit
36c21a21e4
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue