mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
4982f90ea0
* Fixes crash on game over * Fixes high scores saving PR: ports/76558 Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
16 lines
281 B
Bash
16 lines
281 B
Bash
#!/bin/sh
|
|
|
|
SCOREDIR="/var/games"
|
|
SCOREBASE="/var/games/powermanga.hi"
|
|
|
|
[ "$2" != "POST-INSTALL" ] && exit 0
|
|
|
|
mkdir -p $SCOREDIR
|
|
|
|
for suffix in "-easy" "" "-hard"; do
|
|
file="$SCOREBASE$suffix"
|
|
[ ! -f $file ] && touch $file
|
|
chown root:games $file
|
|
chmod 664 $file
|
|
done
|