fix... stuff idek anymore
Some checks reported errors
continuous-integration/drone Build was killed

This commit is contained in:
askiiart 2025-02-26 00:47:05 -06:00
parent 8aef7b8886
commit e2bdbd9158
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

8
run.sh
View file

@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -euxo pipefail
set -euo pipefail
built_dir=${COMPILED_DIR:-/compiled}/polycat
version=$(cat $built_dir/version)
@ -27,15 +27,13 @@ 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
# (which only happens on first run)
touch polycat-tmp.rpm
touch polycat-aaaaaa.rpm
rm $(ls polycat-*.rpm | sort --version-sort | sed '$d')
rm polycat-tmp.rpm
rm polycat-aaaaaa.rpm
# update repo
createrepo_c .