summaryrefslogtreecommitdiff
blob: 77a25e947f458187191eac4f95c084ff497fb4fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- vsinstall.orig	2004-03-20 19:38:15.000000000 -0800
+++ vsinstall	2004-03-20 19:40:50.000000000 -0800
@@ -1,16 +1,16 @@
 #!/bin/sh
-CURPWD=$PWD
-mkdir $HOME/.vegastrike
+(
+mkdir $HOME/.vegastrike 2> /dev/null
 cd $HOME/.vegastrike
-if cat save.4.x.txt ;
-then
-touch save.4.x.txt;
+if [ -f save.4.x.txt ] ; then
+	touch save.4.x.txt
 else
-echo "default"> save.4.x.txt ;
+	echo "default"> save.4.x.txt
 fi
 cp /usr/local/share/vegastrike/data/setup.config .
 cp /usr/local/share/vegastrike/data/.vegastrike/*.m3u .
 cp /usr/local/share/vegastrike/data/vegastrike.config .
 /usr/local/bin/vssetup
+)
 echo "If you wish to have your own music edit ~/.vegastrike/*.m3u  Each playlist represents a place or situation in Vega Strike"
-cd $CURPWD
+exit 0