From 3468adb20ec22b829656ea369a41911c61ac9525 Mon Sep 17 00:00:00 2001 From: Kristofer Hallin Date: Mon, 21 Oct 2024 11:07:10 +0000 Subject: [PATCH] Make sure the build_deb.sh script is started from the cligen directory. --- scripts/build_deb.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/build_deb.sh b/scripts/build_deb.sh index a7b8b0b8..466a9a36 100755 --- a/scripts/build_deb.sh +++ b/scripts/build_deb.sh @@ -6,7 +6,13 @@ set -e # This script is used to build Debian packages for Clixon. # -VERSION=$(./version.sh) +# Make sure the script is started from the cligen directory +if [ ! -f scripts/version.sh ]; then + echo "This script must be run from the clixon directory." + exit 1 +fi + +VERSION=$(./scripts/version.sh) if [ $? -ne 0 ]; then echo "Failed to determine the version of Clixon."