Skip to content

Commit

Permalink
Merge pull request #10 from VincentHardouin/fix-current-version
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentHardouin authored Nov 7, 2022
2 parents 56a695f + 41c1641 commit 40f779c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion npm-bump
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ function get_newest_versions() {
}

function install_version() {
current_version=$(npm list --depth=0 | grep "$1" | grep -E -o "(\d*.){3}$")
current_version=$(npm list --depth=0 | grep "$1@" | grep -E -o "(\d*.){3}$")
echo "Try to bump $1 from $current_version to $2"

if [ -n "${command}" ]; then
Expand Down

0 comments on commit 40f779c

Please sign in to comment.