diff options
author | Phil Davis <phil.davis@inf.org> | 2015-10-24 16:40:58 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-10-24 16:40:58 +0545 |
commit | f80d02a46e11d18c74a6d322ac1bdec7bf244bc0 (patch) | |
tree | 656f0fcda543592618af14df6c2ec207fb0c6ae6 /src | |
parent | 33b170df6d2388b925b2e16413c9e80852a1f6ab (diff) | |
download | pfsense-f80d02a46e11d18c74a6d322ac1bdec7bf244bc0.zip pfsense-f80d02a46e11d18c74a6d322ac1bdec7bf244bc0.tar.gz |
Fix case wildcard of package names for reinstallall
Introduced by https://github.com/pfsense/pfsense/commit/e3b43e4bfe5a3e69028c1ab7e0e4a632ff5ee499
None of the packages were being matched here, none of them would be reinstalled. A "reinstallall" would complete very quickly with "Success" message but actually do nothing.
Diffstat (limited to 'src')
-rwxr-xr-x | src/usr/local/sbin/pfSense-upgrade | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 5a24e2a..a61018f 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -561,7 +561,7 @@ pkg_delete() { # Reinstall every pfSense-pkg-* package pkg_reinstall_all() { for _pkg in $(pkg query -e '%a == 0' %n); do - case ${_pkg} in "${pkg_prefix}*" ) + case ${_pkg} in "${pkg_prefix}"* ) _echo "Reinstalling ${_pkg}" pkg_install ${_pkg} 1 ;; |