Update install.sh

This commit is contained in:
Kroese 2024-05-10 02:00:31 +02:00 committed by GitHub
parent 96a26831a8
commit fba584ff16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -889,19 +889,15 @@ updateImage() {
index="2"
fi
local out="$TMP/extract"
rm -rf "$out"
mkdir -p "$out"
if [[ "$MANUAL" != [Yy1]* ]]; then
xml=$(basename "$asset")
info "Adding $xml for automatic installation..."
if ! wimlib-imagex extract "$loc" "$index" "/$file" "--dest-dir=$out" 2> /dev/null; then
if ! wimlib-imagex extract "$loc" "$index" "/$file" "--dest-dir=$TMP" 2> /dev/null; then
warn "failed to extract answer file ($file) from ISO image.."
fi
if ! wimlib-imagex update "$loc" "$index" --command "add $asset /$file" > /dev/null; then
MANUAL="Y"
warn "failed to add answer file ($xml) to ISO image, $FB"