From 9e21ac0a782cec44e340f58c123e73ef31e2f59e Mon Sep 17 00:00:00 2001 From: mrfry Date: Sat, 8 Apr 2023 18:21:28 +0200 Subject: [PATCH] added make.sh --- make.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 make.sh diff --git a/make.sh b/make.sh new file mode 100755 index 0000000..496c8ee --- /dev/null +++ b/make.sh @@ -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}'"