From b924d8b8102965611d5f0702ac79c96bbc62e0fb Mon Sep 17 00:00:00 2001 From: cblack Date: Thu, 24 Sep 2020 14:23:25 -0500 Subject: [PATCH] Added error checking to the release retrieval step --- auto/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/auto/config b/auto/config index b60b576..2b18d6a 100755 --- a/auto/config +++ b/auto/config @@ -56,6 +56,10 @@ eval set -- "$temp" # Resolve release name dist=$(curl -s $kali_mirror/dists/$dist/Release | awk '/^Codename:/ {print $2}') +if [ -z "$dist" ]; then + echo "ERROR: Build release could not be resolved" + exit 1 +fi # live-build doesn't work if --parent-debian-distribution is unknown of # debian-cd => we have to put a symlink so that it deals with kali like sid