diff --git a/scripts/release-lib.sh b/scripts/release-lib.sh index 20e474c7372ee..6008c39cef48b 100644 --- a/scripts/release-lib.sh +++ b/scripts/release-lib.sh @@ -120,7 +120,10 @@ function commit_changelog() { function update_copyright() { version=$1 - if ! "$scripts_folder/update-copyright" + DIR=$(dirname "$0") + PDIR=$(dirname "$DIR") + + if ! (docker build -t kong/update-copyright ${DIR} && docker run -v ${PDIR}:/workspace --rm kong/update-copyright) then die "Could not update copyright file. Check logs for missing licenses, add hardcoded ones if needed" fi