public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fheroes2] f43: Don't download anything if data-files installed already
@ 2026-07-12 15:02 Peter Lemenkov
0 siblings, 0 replies; only message in thread
From: Peter Lemenkov @ 2026-07-12 15:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/fheroes2
Branch : f43
Commit : f8db7359e6affdca8bcd307969c4962477025d91
Author : Peter Lemenkov <lemenkov@gmail.com>
Date : 2026-07-12T17:00:59+02:00
Stats : +2/-2 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/fheroes2/c/f8db7359e6affdca8bcd307969c4962477025d91?branch=f43
Log:
Don't download anything if data-files installed already
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
---
diff --git a/fheroes2.sh b/fheroes2.sh
index 51eed41..84e4b64 100644
--- a/fheroes2.sh
+++ b/fheroes2.sh
@@ -6,11 +6,11 @@ BASE=$HOME/.local/share/fheroes2
ZIP=$BASE/h2demo.zip
rc=0
-if [ ! -f $ZIP ] ; then
+if [[ ! -n $(find $HOME/.local/share/fheroes2 -maxdepth 2 -iname heroes2.agg) ]] ; then
/usr/share/autodl/AutoDL.py /usr/share/fheroes2/fheroes2.autodlrc
rc=$?
if [ $rc -eq 0 -o $rc -eq 2 ] ; then
- unzip -n -L -d $BASE -n $ZIP license.txt readme.txt data/campaign.hs data/h2offer.smk data/heroes2.agg data/standard.hs maps/brokena.mp2
+ unzip -n -L -d $BASE -n $ZIP license.txt readme.txt data/campaign.hs data/heroes2.agg data/standard.hs maps/brokena.mp2
rc=$?
fi
fi
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-12 15:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-12 15:02 [rpms/fheroes2] f43: Don't download anything if data-files installed already Peter Lemenkov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox