Merge pull request #10300 from hqhq/hq_add_args_for_checkconfig
add args support for check-config.sh
This commit is contained in:
commit
77815c5492
1 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,12 @@ possibleConfigs=(
|
|||
"/usr/src/linux-$(uname -r)/.config"
|
||||
'/usr/src/linux/.config'
|
||||
)
|
||||
: ${CONFIG:="${possibleConfigs[0]}"}
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
CONFIG="$1"
|
||||
else
|
||||
CONFIG="${possibleConfigs[0]}"
|
||||
fi
|
||||
|
||||
if ! command -v zgrep &> /dev/null; then
|
||||
zgrep() {
|
||||
|
|
Loading…
Add table
Reference in a new issue