diff --git a/hack/update-repository-to-cpe.sh b/hack/update-repository-to-cpe.sh index 3b7ac13..4f18c88 100755 --- a/hack/update-repository-to-cpe.sh +++ b/hack/update-repository-to-cpe.sh @@ -4,7 +4,7 @@ set -o errexit set -o pipefail set -o nounset -cd "$(git root)" +cd "$(git rev-parse --show-toplevel)" BASE_URL='https://access.redhat.com/security/data/meta/v1/repository-to-cpe.json' diff --git a/hack/verify-data.sh b/hack/verify-data.sh index 7e800e6..2f2b4e1 100755 --- a/hack/verify-data.sh +++ b/hack/verify-data.sh @@ -4,7 +4,7 @@ set -o errexit set -o pipefail set -o nounset -cd "$(git root)" +cd "$(git rev-parse --show-toplevel)" # The EC policy does not allow for relative paths. For this reason, we use envsubst to replace # occurrences of $PWD with the actual working directory. The result is a temporary policy file