From aac6090f2df3cc9192d1813e3c1f48b882f063d4 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Fri, 23 Jan 2015 16:36:55 +0800 Subject: [PATCH] add args support for check-config.sh Signed-off-by: Qiang Huang --- contrib/check-config.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/check-config.sh b/contrib/check-config.sh index 4f17540731..dc8e7ffcfb 100755 --- a/contrib/check-config.sh +++ b/contrib/check-config.sh @@ -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() {