Skip to content

Commit

Permalink
Be more strict when checking for a matching package name.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Feb 3, 2018
1 parent ad18bb7 commit 5fc7032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/add-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trap "cleanup" EXIT
#

is_pkg_installed_alpine() {
apk info 2>/dev/null | grep -v "^WARNING" | grep -qw "$1"
apk info 2>/dev/null | grep -v "^WARNING" | grep -q "^$1\$"
}

install_pkg_alpine() {
Expand Down

0 comments on commit 5fc7032

Please sign in to comment.