From 5d6bed389edb8863d10d2d52da2a925626e8ef15 Mon Sep 17 00:00:00 2001 From: Jan Hellar Date: Fri, 19 Jul 2019 12:36:56 +0200 Subject: [PATCH] fix: version validation --- scripts/validateRelease.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validateRelease.sh b/scripts/validateRelease.sh index 966cdc8b..751ffc5d 100755 --- a/scripts/validateRelease.sh +++ b/scripts/validateRelease.sh @@ -24,7 +24,7 @@ fi # validate that all packages have the same version found in lerna.json for package in $PACKAGES; do - version=$(lerna --loglevel=silent ls -l | grep $package | awk -F ' ' '{print $2}' | awk -F 'v' '{print $2}') + version=$(lerna --loglevel=silent ls -l | grep $package | awk -F ' ' '{print $2}' | cut -c2-) if [[ $version =~ $PACKAGE_VERSION ]]; then echo "package $package has version $version" else