qmining-data-editor/make.sh
2023-04-08 18:21:28 +02:00

13 lines
286 B
Bash
Executable file

#!/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}'"