Skip to content

Commit

Permalink
Fix bug about checking installed packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeguchi committed Jan 3, 2023
1 parent d6df135 commit da6b255
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
20230103
*Fix bug about checking installed packages

20230102
*Fix bug about getting ports directory

Expand Down
4 changes: 2 additions & 2 deletions pkg_replace.1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.\" $Id: pkg_replace.1,v 1.2 2007/01/25 12:25:56 securedog Exp $
.\"
.\" Modified by Ken DEGUCHI (January 2, 2023)"
.Dd January 2, 2023
.\" Modified by Ken DEGUCHI (January 3, 2023)"
.Dd January 3, 2023
.Dt PKG_REPLACE 1
.Os
.Sh NAME
Expand Down
4 changes: 2 additions & 2 deletions pkg_replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# - Cleanup Code


PKG_REPLACE_VERSION=20230102
PKG_REPLACE_VERSION=20230103
PKG_REPLACE_CONFIG=FreeBSD

usage() {
Expand Down Expand Up @@ -1624,7 +1624,7 @@ main() {
for X in ${upgrade_pkgs}; do
get_installed_pkgname $X 2>&1 > /dev/null || {
install_pkgs="${install_pkgs} $X";
upgrade_pkgs=$(echo ${upgrade_pkgs} | sed "s|$X||g");
upgrade_pkgs=$(echo ${upgrade_pkgs} | sed "s| $X | |g");
}
done

Expand Down

0 comments on commit da6b255

Please sign in to comment.