add args support for check-config.sh
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com> Upstream-commit: aac6090f2df3cc9192d1813e3c1f48b882f063d4 Component: engine
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user