Always use /bin/bash to launch VentoyPlugson.sh (#1809)

This commit is contained in:
longpanda 2022-08-23 20:50:18 +08:00
parent 13eb9829fa
commit 36c21a21e4
1 changed files with 9 additions and 0 deletions

View File

@ -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)