diff --git a/ChangeLog b/ChangeLog index baa5217..4b9fb9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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). diff --git a/pkg_replace.1 b/pkg_replace.1 index f4f5a5d..d21f33e 100644 --- a/pkg_replace.1 +++ b/pkg_replace.1 @@ -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 diff --git a/pkg_replace.sh b/pkg_replace.sh index 27f0986..e21e923 100644 --- a/pkg_replace.sh +++ b/pkg_replace.sh @@ -21,7 +21,7 @@ # - Cleanup Code -PKG_REPLACE_VERSION=20230922 +PKG_REPLACE_VERSION=20231008 PKG_REPLACE_CONFIG=FreeBSD usage() { @@ -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+"$@"}