summarylogtreecommitdiffstats
path: root/arachnowrap
diff options
context:
space:
mode:
Diffstat (limited to 'arachnowrap')
-rw-r--r--arachnowrap6
1 files changed, 6 insertions, 0 deletions
diff --git a/arachnowrap b/arachnowrap
index 5b490ab26164..40b64c8157f0 100644
--- a/arachnowrap
+++ b/arachnowrap
@@ -2,13 +2,19 @@
export LOCALCFGPATH=$HOME/.config/arachnotron/
export SYSTEMCFGPATH=/opt/arachnotron/
export CFGDIRNAME=config/
+export IWAD_DIR=$LOCALCFGPATH/iwad
+
+set -e
+
if test ! -d $LOCALCFGPATH
then
mkdir -p $LOCALCFGPATH
fi
if test ! -d $LOCALCFGPATH/$CFGDIRNAME
then
+ cd
cp -r --no-preserve=mode,ownership $SYSTEMCFGPATH/$CFGDIRNAME $LOCALCFGPATH
+ sed -i "s+USERPATH+$IWAD_DIR+g" $LOCALCFGPATH/$CFGDIRNAME/settings.json
fi
cd $LOCALCFGPATH
$SYSTEMCFGPATH/arachnotron