Skip to content

Commit 00ba8ab

Browse files
author
Eric Griffith
authored
refactor: use grep -E instead of egrep (#70)
to get rid of `egrep is obsolescent` warning.
1 parent b5862c1 commit 00ba8ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/asdf-plugin-manager.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ update_plugins() {
145145
read -r plugin_name plugin_url plugin_ref_managed < <(echo ${managed_plugin})
146146

147147
echo "[INFO] Updating: ${plugin_name} ${plugin_url} ${plugin_ref_managed} to HEAD"
148-
plugin_ref_before_update="$(export_plugins | egrep "^\b${plugin_name}\b\s+" | sed -e 's/^.*\s//')"
148+
plugin_ref_before_update="$(export_plugins | grep -E "^\b${plugin_name}\b\s+" | sed -e 's/^.*\s//')"
149149
asdf plugin update "${plugin_name}"
150-
plugin_ref_after_update="$(export_plugins | egrep "^\b${plugin_name}\b\s+" | sed -e 's/^.*\s//')"
150+
plugin_ref_after_update="$(export_plugins | grep -E "^\b${plugin_name}\b\s+" | sed -e 's/^.*\s//')"
151151

152152
if [[ "${plugin_ref_before_update}" == "${plugin_ref_after_update}" ]]; then
153153
echo "[INFO] The plugin \"${plugin_name}\" with git-ref \"${plugin_ref_managed}\" is already up-to-date."

0 commit comments

Comments
 (0)