Skip to content

Commit

Permalink
Merge pull request dynup#1367 from ZhangHongchen1/check_gawk
Browse files Browse the repository at this point in the history
kpatch-build: check if gawk exist
  • Loading branch information
joe-lawrence committed Jan 10, 2024
2 parents 8513926 + e4da489 commit 1317475
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kpatch-build/kpatch-build
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,10 @@ usage() {
echo " (not recommended)" >&2
}

if ! command -v gawk &> /dev/null; then
die "gawk not installed"
fi

options="$(getopt -o ha:r:s:c:v:j:t:n:o:dR -l "help,archversion:,sourcerpm:,sourcedir:,config:,vmlinux:,jobs:,target:,name:,output:,oot-module:,oot-module-src:,debug,skip-gcc-check,skip-compiler-check,skip-cleanup,non-replace" -- "$@")" || die "getopt failed"

eval set -- "$options"
Expand Down

0 comments on commit 1317475

Please sign in to comment.