diff --git a/run.sh b/run.sh index 0c60b21..c814e9c 100755 --- a/run.sh +++ b/run.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -euo pipefail +set -euxo pipefail built_dir=${COMPILED_DIR:-/compiled}/polycat version=$(cat $built_dir/version) @@ -27,6 +27,8 @@ sed -i "s/RPM_PACKAGER_EMAIL/$RPM_PACKAGER_EMAIL/g" polycat.spec rpmbuild -bb polycat.spec mv ~/rpmbuild/RPMS/x86_64/polycat-$version-* $repo_dir/ +ls ~/rpmbuild/RPMS/x86_64/ +exit # remove old versions cd $repo_dir # this is the easiest way to make sure it doesn't just fail because no polycat-* exists @@ -38,4 +40,4 @@ rm polycat-tmp.rpm # update repo createrepo_c . -echo "package is at $repo_dir/$(ls polycat-*.rpm)" +echo "package is at $repo_dir/$(ls $repo_dir/polycat-*.rpm)"