summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Ressel <aranea@aixah.de>2018-08-21 23:11:34 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-23 22:10:46 +0200
commite367f0b4675fd083c8c21fa47b15b4c3390f8c15 (patch)
tree6cc624631fc95670bb11ead97c0bc4982f5eeb8f /games-roguelike/nethack
parentnet-p2p/vuze: raising memory for x86 (diff)
downloadgentoo-e367f0b4675fd083c8c21fa47b15b4c3390f8c15.tar.gz
gentoo-e367f0b4675fd083c8c21fa47b15b4c3390f8c15.tar.bz2
gentoo-e367f0b4675fd083c8c21fa47b15b4c3390f8c15.zip
games-roguelike/nethack: Update to the newest PR version
Accidentally merged an old version. Fixing it up. Pull-Request: https://github.com/gentoo/gentoo/pull/9661
Diffstat (limited to 'games-roguelike/nethack')
-rw-r--r--games-roguelike/nethack/nethack-3.6.1.ebuild5
1 files changed, 3 insertions, 2 deletions
diff --git a/games-roguelike/nethack/nethack-3.6.1.ebuild b/games-roguelike/nethack/nethack-3.6.1.ebuild
index 3c6526d8c1ca..b965ddbd5ef3 100644
--- a/games-roguelike/nethack/nethack-3.6.1.ebuild
+++ b/games-roguelike/nethack/nethack-3.6.1.ebuild
@@ -118,9 +118,10 @@ pkg_postinst() {
# by comparing the mtimes of save files and its own binary. This would require admin interaction even
# during upgrades which don't change the file format, so we'll just touch the files and warn the admin
# manually in case of compatibility issues.
- ( shopt -s nullglob
+ (
+ shopt -s nullglob
local saves=( bones* save/* )
- test ${#saves[@]} -gt 0 && touch -c "${saves[@]}"
+ [[ -n "${saves[*]}" ]] && touch -c "${saves[@]}"
) # non-fatal
elog "A minimal default .nethackrc has been placed in /etc/skel/"