Files
germandndcompendium/updateScript.sh
2021-11-24 22:01:03 +01:00

18 lines
352 B
Bash
Executable File

#!/bin/bash
echo "Update script for Foundry Plugin"
echo "Get Updates from remote if nessesary"
git pull
# Assume the correct version is set in module js
echo "Extract version"
PACKAGE_VERSION=$(cat module.json \
| grep \"version\" \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g' \
| tr -d '[[:space:]]')
echo $PACKAGE_VERSION