Skip to content

Commit

Permalink
Check the pkg command if it is installed or not.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeguchi committed Oct 8, 2023
1 parent 2d93221 commit 4e1f9bd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
20231008
*Check the pkg command if it is installed or not.

20230922
*Improved FLAVOR handling when installing new packages.
See example section in pkg_replace(1).
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 (September 22, 2023)"
.Dd September 22, 2023
.\" Modified by Ken DEGUCHI (October 8, 2023)"
.Dd October 8, 2023
.Dt PKG_REPLACE 1
.Os
.Sh NAME
Expand Down
4 changes: 3 additions & 1 deletion pkg_replace.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# - Cleanup Code


PKG_REPLACE_VERSION=20230922
PKG_REPLACE_VERSION=20231008
PKG_REPLACE_CONFIG=FreeBSD

usage() {
Expand Down Expand Up @@ -1657,6 +1657,8 @@ do_version() {
main() {
local ARG ARGV jobs pids cnt X

isempty $(which pkg-static) && { warn 'pkg not found. Please install the pkg command.'; exit 1; }

init_variables
init_options
parse_options ${1+"$@"}
Expand Down

0 comments on commit 4e1f9bd

Please sign in to comment.