From cdf2cc900e7c9e4dea0221f293a7e80beb29548d Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 20 May 2018 22:52:20 +0200 Subject: [PATCH] add project check --- src/func/check_config | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/func/check_config b/src/func/check_config index 19eddeb..d3e33b8 100755 --- a/src/func/check_config +++ b/src/func/check_config @@ -25,6 +25,13 @@ function check_config() { } + + #Project + [ -f "/proj/$distro" ] || { + echo "No Project \"$distrp\" is not supported" | tee -a "$log_file" + return 3 + } + #check live-system files if [ -f "$iso_source" ]; then if [ -n "$iso_destination" ] && [ -d "${iso_destination%/*}" ]; then