You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
364 B
22 lines
364 B
5 years ago
|
#!/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/
|