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-postversionindex e6dc5405bfd..0c98f6be020 100755--- a/static/shared/tools/npm-postversion+++ b/static/shared/tools/npm-postversion@@ -1,8 +1,8 @@#!/usr/bin/env bashset -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 terminaldiff --git a/static/shared/tools/npm-version b/static/shared/tools/npm-versionindex c62eac02b8c..8ab98a84c16 100755--- a/static/shared/tools/npm-version+++ b/static/shared/tools/npm-version@@ -1,8 +1,8 @@#!/usr/bin/env bashset -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}"