File: postrm

package info (click to toggle)
phalanx 18-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 680 kB
  • ctags: 514
  • sloc: ansic: 6,408; makefile: 69; sh: 50
file content (10 lines) | stat: -rw-r--r-- 199 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -e

if test "$1" = purge; then
  echo "Removing learning file..."
  rm -f /var/lib/games/phalanx.learn
else  # not purging
  if test -x /usr/bin/update-menus; then update-menus; fi
fi