Skip to content

Commit

Permalink
Make sure the build_deb.sh script is started from the cligen directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
krihal authored and olofhagsand committed Oct 21, 2024
1 parent 1908bde commit 218d773
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ set -e
# This script is used to build Debian packages for Cligen.
#

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 cligen directory."
exit 1
fi

VERSION=$(./scripts/version.sh)

if [ $? -ne 0 ]; then
echo "Failed to determine the version of Cligen."
Expand Down

0 comments on commit 218d773

Please sign in to comment.