更新install可以自动更新子模块

This commit is contained in:
cxykevin 2024-02-14 14:14:19 +08:00
parent b5a4afe53f
commit 5377d991f8
1 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,6 @@ import os
import shutil
import json
import platform
import string
############ Config ############
KEYWORD = "winpe"
@ -19,7 +18,6 @@ DISK = "{disk}"
def find_disk():
ventoy_drives = []
if platform.system() == 'Linux':
mount_point = "/mnt/prinjector_mount_point"
print(
@ -69,6 +67,10 @@ def find_disk():
"Cannot find the Ventoy disk!(try to run ventoyPlugson once)")
print("Update packages")
os.system("git submodule update --init --recursive")
DISK = DISK.replace("{disk}", find_disk())
print("Use disk: "+DISK)