Skip to content

Commit

Permalink
Add -E option to grep command.
Browse files Browse the repository at this point in the history
Signed-off-by: ghosind <[email protected]>
  • Loading branch information
ghosind committed Oct 2, 2024
1 parent af99851 commit 999851a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1115,13 +1115,15 @@ export DVM_VERSION="v0.8.3"
fi
version_prefix="$version_prefix\."

dvm_debug "searching version prefix: $version_prefix"

if ! dvm_get_remote_versions
then
dvm_failure
return
fi

tmp_versions=$(echo "$DVM_REMOTE_VERSIONS" | grep "$version_prefix" | tail -n 1)
tmp_versions=$(echo "$DVM_REMOTE_VERSIONS" | grep -E "$version_prefix" | tail -n 1)
if [ -z "$tmp_versions" ]
then
dvm_print_error "no version found by $search_text"
Expand Down

0 comments on commit 999851a

Please sign in to comment.