projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e41f4e
)
added script
author
Matthew Owens
<matthew@owens.tech>
Thu, 20 Jun 2024 20:20:58 +0000
(21:20 +0100)
committer
Matthew Owens
<matthew@owens.tech>
Thu, 20 Jun 2024 20:20:58 +0000
(21:20 +0100)
foundry
[new file with mode: 0755]
patch
|
blob
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