diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build index 5e02faa..6653e8d 100755 --- a/kpatch-build/kpatch-build +++ b/kpatch-build/kpatch-build @@ -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"