From 233ae6d69a373a7ca6d796160d8e0f7fc9158885 Mon Sep 17 00:00:00 2001 From: luzeagithub <62355456+luzeagithub@users.noreply.github.com> Date: Thu, 11 Mar 2021 08:47:34 +0100 Subject: [PATCH] Add warning when updates are detected --- convert.sh | 11 ++++++++++- readme.md | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/convert.sh b/convert.sh index ba7a69f..cd4d65c 100755 --- a/convert.sh +++ b/convert.sh @@ -1,5 +1,5 @@ #!/bin/bash -scriptName="UUP Converter v0.6.2" +scriptName="UUP Converter v0.6.3" UUP_CONVERTER_SCRIPT=1 if [ -f `dirname $0`/convert_ve_plugin ]; then @@ -391,6 +391,15 @@ extractDir="$tempDir/extract" echo -e "\033[1m$scriptName\033[0m" +updatesDetected=false +for file in `find "$uupDir" -type f -iname "windows10.0-kb*.cab"`; do + updatesDetected=true +done + +if [ $updatesDetected == true ]; then + echo -e "\033[33mNote: This script does now allow the integration of updates.\nUse the Windows version of the converter to integrate updates." +fi + if [ $runVirtualEditions -eq 1 ] && [ "$VIRTUAL_EDITIONS_PLUGIN_LOADED" != "1" ]; then echo "Virtual editions will be not created, because plugin isn't loaded." runVirtualEditions=0 diff --git a/readme.md b/readme.md index af5c239..9361096 100644 --- a/readme.md +++ b/readme.md @@ -6,8 +6,8 @@ A basic UUP converter aimed at Linux and macOS users who don't have access to an Windows machine, but want or need to create an ISO image for latest Windows Insider version downloaded from UUP dump. -For obvious reasons this script will never support integration of Cumulative -Updates to created images. +**For obvious reasons this script will never support integration of Cumulative +Updates to created images.** ### Usage ```