16 lines
253 B
Bash
Executable File
16 lines
253 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
touch config.json
|
|
cat >./config.json <<EOF
|
|
$CONFIGJSON
|
|
EOF
|
|
if [ ! -s config.json ]; then
|
|
echo "no config found"
|
|
exit 1
|
|
fi
|
|
if [[ -z $(grep '[^[:space:]]' "config.json") ]]; then
|
|
echo "no config in file"
|
|
rm config.json
|
|
exit 1
|
|
fi
|