WIP: add function for pull and version extraction

This commit is contained in:
2021-11-24 08:03:58 +01:00
parent b46aa0d8b0
commit 35606f8047

View File

@@ -0,0 +1,18 @@
#!/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