From 4cd3b173c6b9913b2a4fcf494ae640aa2ae1ae83 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 25 May 2024 12:25:14 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/install.sh b/src/install.sh index a386b45..8f9b780 100644 --- a/src/install.sh +++ b/src/install.sh @@ -805,12 +805,14 @@ updateImage() { info "$msg" && html "$msg" local drivers="$TMP/drivers" - rm -rf "$drivers" + mkdir -p "$drivers" - if ! 7z x /run/drivers.iso -o"$drivers" > /dev/null; then - error "Failed to extract driver ISO file!" && return 1 + if ! tar -xf /drivers.txz -C "$drivers"; then + error "Failed to extract driver!" && return 1 fi +ls "$drivers" + local target="\$WinPEDriver\$" local dest="$drivers/$target" mkdir -p "$dest"