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