mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-07-24 10:48:12 +00:00
Fix the PATH broken in Ventoy2Disk.sh (#3615)
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
OLDDIR=$(pwd)
|
|
||||||
|
|
||||||
if ! [ -f ./tool/ventoy_lib.sh ]; then
|
if ! [ -f ./tool/ventoy_lib.sh ]; then
|
||||||
if [ -f ${0%Ventoy2Disk.sh}/tool/ventoy_lib.sh ]; then
|
if [ -f ${0%Ventoy2Disk.sh}/tool/ventoy_lib.sh ]; then
|
||||||
cd ${0%Ventoy2Disk.sh}
|
cd ${0%Ventoy2Disk.sh}
|
||||||
@@ -21,7 +19,7 @@ elif uname -m | grep -E -q 'mips64'; then
|
|||||||
else
|
else
|
||||||
export TOOLDIR=i386
|
export TOOLDIR=i386
|
||||||
fi
|
fi
|
||||||
export PATH="$OLDDIR/tool/$TOOLDIR:$PATH"
|
export PATH="$(pwd)/tool/$TOOLDIR:$PATH"
|
||||||
|
|
||||||
|
|
||||||
echo ''
|
echo ''
|
||||||
@@ -88,10 +86,3 @@ if [ -f /bin/bash ]; then
|
|||||||
else
|
else
|
||||||
ash ./tool/VentoyWorker.sh $*
|
ash ./tool/VentoyWorker.sh $*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$OLDDIR" ]; then
|
|
||||||
CURDIR=$(pwd)
|
|
||||||
if [ "$CURDIR" != "$OLDDIR" ]; then
|
|
||||||
cd "$OLDDIR"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|||||||
Reference in New Issue
Block a user