Fix the PATH broken in Ventoy2Disk.sh (#3615)

This commit is contained in:
longpanda
2026-07-24 17:21:49 +08:00
parent 5ebef5af77
commit e352b76731

View File

@@ -1,7 +1,5 @@
#!/bin/sh
OLDDIR=$(pwd)
if ! [ -f ./tool/ventoy_lib.sh ]; then
if [ -f ${0%Ventoy2Disk.sh}/tool/ventoy_lib.sh ]; then
cd ${0%Ventoy2Disk.sh}
@@ -21,7 +19,7 @@ elif uname -m | grep -E -q 'mips64'; then
else
export TOOLDIR=i386
fi
export PATH="$OLDDIR/tool/$TOOLDIR:$PATH"
export PATH="$(pwd)/tool/$TOOLDIR:$PATH"
echo ''
@@ -88,10 +86,3 @@ if [ -f /bin/bash ]; then
else
ash ./tool/VentoyWorker.sh $*
fi
if [ -n "$OLDDIR" ]; then
CURDIR=$(pwd)
if [ "$CURDIR" != "$OLDDIR" ]; then
cd "$OLDDIR"
fi
fi