added script
authorMatthew Owens <matthew@owens.tech>
Thu, 20 Jun 2024 20:20:58 +0000 (21:20 +0100)
committerMatthew Owens <matthew@owens.tech>
Thu, 20 Jun 2024 20:20:58 +0000 (21:20 +0100)
foundry [new file with mode: 0755]

diff --git a/foundry b/foundry
new file mode 100755 (executable)
index 0000000..7116f91
--- /dev/null
+++ b/foundry
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+RDIR=~/.local/share/FoundryVTT-r
+LDIR=~/.local/share/FoundryVTT-l
+LN=~/.local/share/FoundryVTT
+SELECTED_DIR=$RDIR
+FOUNDRY=~/games/foundryvtt/foundryvtt
+
+if ! [ -z "$1" ]; then
+       if [ "$1" = "-l" ]; then
+               SELECTED_DIR=$LDIR
+       fi
+fi
+
+unlink $LN &> /dev/null
+ln -s $SELECTED_DIR $LN
+#$FOUNDRY
+node ~/games/foundryvtt/resources/app/main.js --dataPath=$SELECTED_DIR