From: Matthew Owens Date: Thu, 20 Jun 2024 20:20:58 +0000 (+0100) Subject: added script X-Git-Url: https://git.owens.tech/about.html/about.html/git?a=commitdiff_plain;h=fd2cc9bdeb3ebdd60a60064b60c675bbaffc4ffc;p=scripts.git added script --- diff --git a/foundry b/foundry new file mode 100755 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