Matthew Faltys
5 years ago
8 changed files with 37 additions and 3 deletions
@ -0,0 +1,21 @@
|
||||
#!/bin/bash |
||||
|
||||
FILES=/sotw/* |
||||
USERDIR=$1 |
||||
HACKDIR=$2 |
||||
|
||||
# create initial dir if it does not exist |
||||
mkdir -p $USERDIR/sotw/ |
||||
|
||||
# link all game files to user dir |
||||
for f in $FILES |
||||
do |
||||
echo "linking $f" |
||||
ln -s $f $USERDIR/sotw/ |
||||
done |
||||
|
||||
# remove inital score file |
||||
rm -rf $USERDIR/sotw/scores.dat |
||||
|
||||
# link in shared score file from hackdir |
||||
ln -s $HACKDIR/scores.dat $USERDIR/sotw/ |
Binary file not shown.
Loading…
Reference in new issue