Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

shared: Check variable in release scripts, avoiding shellcheck disable.

Anders Kaseorg4c307e526605
diff --git a/static/shared/tools/npm-postversion b/static/shared/tools/npm-postversion
index e6dc5405bfd..0c98f6be020 100755
--- a/static/shared/tools/npm-postversion
+++ b/static/shared/tools/npm-postversion
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -eu -o pipefail
-# shellcheck disable=SC2154 # expect this to run as NPM script
-: "${npm_package_version}"
+# expect this to run as NPM script
+: "${npm_package_version?}"
should_color=
if [ -t 2 ]; then # if we're sending to a terminal
diff --git a/static/shared/tools/npm-version b/static/shared/tools/npm-version
index c62eac02b8c..8ab98a84c16 100755
--- a/static/shared/tools/npm-version
+++ b/static/shared/tools/npm-version
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
set -eu -o pipefail
-# shellcheck disable=SC2154 # expect this to run as NPM script
-: "${npm_package_version}"
+# expect this to run as NPM script
+: "${npm_package_version?}"
git commit -am "shared: Bump version to ${npm_package_version}"
git tag "shared-${npm_package_version}"