qmining-data-editor/make.sh
2023-04-10 11:21:52 +02:00

13 lines
306 B
Bash
Executable file

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