更新install可以自动更新子模块
This commit is contained in:
parent
b5a4afe53f
commit
5377d991f8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue