From c4949e8123c766ec454750ed93733c53f4548ba4 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 4 Nov 2018 09:40:27 +0100 Subject: [PATCH] must be run below debian/ --- debian/qualify-clang.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 534aa195..ad41364d 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -1,7 +1,10 @@ #!/bin/bash # Stop at the first error set -e - +if ! test -d debian/; then + echo "$0: Could not find the debian/ directory" + exit 1 +fi VERSION=$(dpkg-parsechangelog | sed -rne "s,^Version: 1:([0-9]+).*,\1,p") DETAILED_VERSION=$(dpkg-parsechangelog | sed -rne "s,^Version: 1:([0-9.]+)(~|-)(.*),\1\2\3,p")