fix logic for first run
This commit is contained in:
parent
8d0f2ecdd2
commit
72ad18e6be
1 changed files with 2 additions and 2 deletions
4
run.sh
4
run.sh
|
@ -35,9 +35,9 @@ mv ~/rpmbuild/RPMS/x86_64/polycat-$version-* $repo_dir/
|
|||
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-aaaaaa.rpm
|
||||
touch polycat-r0.rpm
|
||||
rm $(ls polycat-*.rpm | sort --version-sort | sed '$d')
|
||||
rm polycat-aaaaaa.rpm
|
||||
rm polycat-r0.rpm || true
|
||||
|
||||
# update repo
|
||||
createrepo_c .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue