Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions INSTALL/Ventoy2Disk.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
#!/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}
fi
fi
cd "$(dirname "$0")"

if [ -f ./ventoy/version ]; then
curver=$(cat ./ventoy/version)
Expand All @@ -21,7 +15,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 ''
Expand Down Expand Up @@ -88,10 +82,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