Merge pull request #10300 from hqhq/hq_add_args_for_checkconfig

add args support for check-config.sh
This commit is contained in:
Alexander Morozov 2015-02-06 13:49:09 -08:00
commit 77815c5492
1 changed files with 6 additions and 1 deletions

View File

@ -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() {