This commit is contained in:
2022-07-01 12:40:26 +01:00
parent 50bbe07fc8
commit 9e90c05b2e
4 changed files with 23 additions and 5 deletions

View File

@ -20,11 +20,16 @@ if [ -f ${BASE}/secrets/.ntfyenv ]
then
. ${BASE}/secrets/.ntfyenv
else
echo "Created ${BASE}/secrets/.ntfyenv"
echo "Please update contents and rerun"
echo "DUFUS="" " > ${BASE}/secrets/.ntfyenv
echo "TCHATID="" " >> ${BASE}/secrets/.ntfyenv
exit 1
if [ -z ${DUFUS+x} ]
then
echo "Created ${BASE}/secrets/.ntfyenv"
echo "Please update contents and rerun"
echo "DUFUS="" " > ${BASE}/secrets/.ntfyenv
echo "TCHATID="" " >> ${BASE}/secrets/.ntfyenv
exit 1
else
echo "DUFUS=${DUFUS}" > ${BASE}/secrets/.ntfyenv
fi
fi
SCRIPT=$1