added make.sh

This commit is contained in:
mrfry 2023-04-08 18:21:28 +02:00
parent 5a665bc766
commit 9e21ac0a78

13
make.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
scriptPath=$(dirname -- "${0}")
domainPath="${scriptPath}/../../data/domain"
if [ ! -f "${domainPath}" ]; then
echo "${domainPath} does not exist!"
exit 1
fi
domain=$(cat "${domainPath}")
DOMAIN="${domain}" npm run export
echo "Exported with domain: '${domain}'"