Skip to content

Commit

Permalink
fix: correct search for version in package.json
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Eicker <[email protected]>
  • Loading branch information
NiklasEi committed Jul 16, 2021
1 parent 99c7502 commit 22663a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prepare_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ UPSTREAM_URL='[email protected]:TNG/momo-scheduler.git'
DRY_RUN=0
UPSTREAM_BRANCH=main

set -eux
set -eu

for arg in "$@"; do
case $arg in
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ UPSTREAM_URL='[email protected]:TNG/momo-scheduler.git'
DRY_RUN=0
UPSTREAM_BRANCH=main

set -eux
set -eu

for arg in "$@"; do
case $arg in
Expand Down Expand Up @@ -44,7 +44,7 @@ fi
git pull "${UPSTREAM_URL}" "${UPSTREAM_BRANCH}"

echo "Checking version in package.json"
if [ ! -n "$(sed -n -e '/\"version\": \"$VERSION\"/ p' package.json)" ]; then
if [ ! -n "$(sed -n -e "/\"version\": \"${VERSION}\"/ p" package.json)" ]; then
echo "Version in package.json is not $VERSION!"
exit 1
fi
Expand Down

0 comments on commit 22663a6

Please sign in to comment.