From ba2a241c90e2937dfd1957e9e0bf67b6fd2f9c4e Mon Sep 17 00:00:00 2001 From: Jon Date: Tue, 22 Feb 2022 22:03:35 +0000 Subject: [PATCH] hotpocket.sh: add conditional for dryrun notice --- hotpocket.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotpocket.sh b/hotpocket.sh index 5fc81e2..5e40b5d 100755 --- a/hotpocket.sh +++ b/hotpocket.sh @@ -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!" 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 ACTIONS