Make sure the build_deb.sh script is started from the cligen directory.

This commit is contained in:
Kristofer Hallin 2024-10-21 11:07:10 +00:00 committed by Olof Hagsand
parent 03f153d6fa
commit 3468adb20e

View file

@ -6,7 +6,13 @@ set -e
# This script is used to build Debian packages for Clixon. # 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 if [ $? -ne 0 ]; then
echo "Failed to determine the version of Clixon." echo "Failed to determine the version of Clixon."