Skip to content

Commit 844b9d1

Browse files
committed
Clarify missing argument messages
1 parent c182a9d commit 844b9d1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

scripts/postrelease/tps_record_release

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ fi
2323
# Argument overrides the environment variable
2424
component_slug="${1:-$COMPONENT_SLUG}"
2525
if [ -z "$component_slug" ]; then
26-
echo "Requires first argument: Heroku component slug" >&2
26+
echo "Requires first argument or env var COMPONENT_SLUG: Heroku component slug" >&2
2727
exit 1
2828
fi
2929

3030
release_sha="${2:-$RELEASE_SHA}"
3131
if [ -z "$release_sha" ]; then
32-
echo "Requires second argument: SHA of the commit being released" >&2
32+
echo "Requires second argument or env var RELEASE_SHA: SHA of the commit being released" >&2
3333
exit 1
3434
fi
3535

3636
actor_email="${3:-$ACTOR_EMAIL}"
3737
if [ -z "$actor_email" ]; then
38-
echo "Requires third argument: email of actor performing the release" >&2
38+
echo "Requires third argument or env var ACTOR_EMAIL: email of actor performing the release" >&2
3939
exit 1
4040
fi
4141

4242
stage="${4:-$STAGE}"
4343
if [ -z "$stage" ]; then
44-
echo "Requires fifth argument: stage of the release" >&2
44+
echo "Requires fifth argument or env var STAGE: stage of the release" >&2
4545
exit 1
4646
fi
4747

scripts/release/tps_check_lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ fi
2020
# Argument overrides the environment variable
2121
component_slug="${1:-$COMPONENT_SLUG}"
2222
if [ -z "$component_slug" ]; then
23-
echo "Requires first argument: Heroku component slug" >&2
23+
echo "Requires first argument or env var COMPONENT_SLUG: Heroku component slug" >&2
2424
exit 1
2525
fi
2626

2727
release_sha="${2:-$RELEASE_SHA}"
2828
if [ -z "$release_sha" ]; then
29-
echo "Requires second argument: SHA of the commit being released" >&2
29+
echo "Requires second argument or env var RELEASE_SHA: SHA of the commit being released" >&2
3030
exit 1
3131
fi
3232

0 commit comments

Comments
 (0)