hotpocket.sh: add conditional for dryrun notice

This commit is contained in:
Jon 2022-02-22 22:03:35 +00:00
parent 165679a637
commit ba2a241c90

View File

@ -118,7 +118,7 @@ ACCESS_TOKEN="$(jq '.access_token' -r <<< "$CONFIG")" || die "main: Failed to re
USER_ID="$(jq '.user_id' -r <<< "$CONFIG")" || die "main: Failed to read user_id!" USER_ID="$(jq '.user_id' -r <<< "$CONFIG")" || die "main: Failed to read user_id!"
TOPICS="$(yq -c . "$SCHEMA_DIR/topics.yaml")" || die "main: Failed to load topics!" TOPICS="$(yq -c . "$SCHEMA_DIR/topics.yaml")" || die "main: Failed to load topics!"
echo "main: This is a dry run, any actions will fail!" 1>&2 [ -n "$DRY_RUN" ] && echo "main: This is a dry run, any actions will fail!" 1>&2
readonly CONFIG readonly CONFIG
readonly ACTIONS readonly ACTIONS