]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - INSTALL/VentoyPlugson.sh
Fix typo in GitHub Issue Templates (#1852)
[Ventoy.git] / INSTALL / VentoyPlugson.sh
index 4573fbc105422e075d9bb566e9f580bea8110b77..b23218af62d8096a5f41caf5311a56a734e0bf60 100644 (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)
 
@@ -187,7 +196,7 @@ fi
 
 #change current directory to Ventoy disk
 cd "$mtpnt"
-LANG=en_US $OLDDIR/tool/$TOOLDIR/Plugson "$HOST" "$PORT" "$OLDDIR" "$DISK" $version "$fstype" $partstyle $secureboot   &
+$OLDDIR/tool/$TOOLDIR/Plugson "$HOST" "$PORT" "$OLDDIR" "$DISK" $version "$fstype" $partstyle $secureboot   &
 wID=$!
 sleep 1