From dd51457d09662df72adbf3fc53d2d034b8a7dad5 Mon Sep 17 00:00:00 2001
From: Michael Vorburger <mike@vorburger.ch>
Date: Sat, 30 Jan 2021 15:15:40 +0100
Subject: [PATCH] rm un-used set_image() dupe of check_image() in
 run_archiso.sh

---
 scripts/run_archiso.sh | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/scripts/run_archiso.sh b/scripts/run_archiso.sh
index 74f30966..36569b54 100755
--- a/scripts/run_archiso.sh
+++ b/scripts/run_archiso.sh
@@ -115,18 +115,6 @@ run_image() {
         -no-reboot
 }
 
-set_image() {
-    if [[ -z "$image" ]]; then
-        printf 'ERROR: %s\n' "Image name can not be empty."
-        exit 1
-    fi
-    if [[ ! -f "$image" ]]; then
-        printf 'ERROR: %s\n' "Image (${image}) does not exist."
-        exit 1
-    fi
-    image="$1"
-}
-
 image=''
 oddimage=''
 accessibility=''
-- 
GitLab