From 1d5ba1b928aaef6ee43955dd3d53f1b0df1329a2 Mon Sep 17 00:00:00 2001 From: Nick Daly Date: Tue, 2 Feb 2010 21:03:07 -0600 Subject: Installations are now saved in a simple registry. Also, quoted a few variables in auto-installer for fun. --- includes/autoinstall-includes.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'includes') diff --git a/includes/autoinstall-includes.sh b/includes/autoinstall-includes.sh index fe503a0..cff3499 100644 --- a/includes/autoinstall-includes.sh +++ b/includes/autoinstall-includes.sh @@ -107,6 +107,9 @@ function recommendcfg STARTCD=1 fi + gemrbDir="~/.gemrb" + installRegistry="${gemrbDir}/installations.ini" + displayText="To play the game with GemRB, you will need to add the following\n" displayText=${displayText}"lines to your GemRB.cfg file:\n" @@ -137,4 +140,9 @@ function recommendcfg else echo -e "$displayText" fi + + # record the installation in the installation registry. + mkdir "$gemrbDir" + touch "$installRegistry" + echo "$TARGETDIR" >> "$installRegistry" } -- cgit v1.2.3