diff --git a/ansible/rebuild_module.sh b/ansible/rebuild_module.sh index ff9b80c..922aef1 100755 --- a/ansible/rebuild_module.sh +++ b/ansible/rebuild_module.sh @@ -19,8 +19,8 @@ fi pushd "$PACKAGES_DIR" # Update module digest so that pr.groovy can ensure it is run after each module change -cat $(find openshift/ -name '*.py' | sort) | md5sum > $DIR/rebuild_module.digest -ENCODED_TGZ=$(tar c --owner=0 --numeric-owner --group=0 --mtime='UTC 2019-01-01' $(find openshift/ -name '*.py' | sort) | gzip -c -n | base64 --wrap=0) +cat $(find openshift/ -name '*.py' | sort -d) | md5sum > $DIR/rebuild_module.digest +ENCODED_TGZ=$(tar c --owner=0 --numeric-owner --group=0 --mtime='UTC 2019-01-01' $(find openshift/ -name '*.py' | sort -d) | gzip -c -n | base64 --wrap=0) popd echo "#!/usr/bin/env python" > $OUTPUT_FILE @@ -45,4 +45,4 @@ done < "$TEMPLATE_FILE" if [[ "$replaced" != "1" ]]; then echo "Unable to find replacement pattern in template" exit 1 -fi \ No newline at end of file +fi