mirror of https://github.com/dynup/kpatch
Merge pull request #1367 from ZhangHongchen1/check_gawk
kpatch-build: check if gawk exist
This commit is contained in:
commit
131747507f
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue