From 1e55435098be6f81c4d03bcb457e22cedd675a45 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 22 Jul 2024 22:07:26 +0200 Subject: [PATCH] Reorder statements logically --- deploy.fish | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/deploy.fish b/deploy.fish index 9288b9e..9b3963b 100644 --- a/deploy.fish +++ b/deploy.fish @@ -3,6 +3,12 @@ begin set -l dir (status dirname) source "$dir/lib/choose-disk.fish" + set -q WIN11_IMAGE_PATH + or begin + echo "Please specify the Windows 11 ISO in the `WIN11_IMAGE_PATH` variable." + exit 1 + end + set -l setupLabel "winiso-valhalla" set -l buildDir "$(status dirname)/build" set -l cacheDir ~/.cache/winiso-valhalla @@ -11,13 +17,6 @@ begin set -l bootPath "/media/boot" set -l dataPath "/media/data" set -l winpeOverlay (mktemp -d) - - set -q WIN11_IMAGE_PATH - or begin - echo "Please specify the Windows 11 ISO in the `WIN11_IMAGE_PATH` variable." - exit 1 - end - set -l editionField "Edition ID" set -l wimFile "$dataPath/sources/install.wim"