浏览代码

Fix check-config.sh usage

Signed-off-by: Lei Jitang <leijitang@huawei.com>
Lei Jitang 10 年之前
父节点
当前提交
82fda400b8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      contrib/check-config.sh

+ 2 - 2
contrib/check-config.sh

@@ -14,7 +14,7 @@ possibleConfigs=(
 if [ $# -gt 0 ]; then
 	CONFIG="$1"
 else
-	CONFIG="${possibleConfigs[0]}"
+	: ${CONFIG:="${possibleConfigs[0]}"}
 fi
 
 if ! command -v zgrep &> /dev/null; then
@@ -94,7 +94,7 @@ if [ ! -e "$CONFIG" ]; then
 	if [ ! -e "$CONFIG" ]; then
 		wrap_warning "error: cannot find kernel config"
 		wrap_warning "  try running this script again, specifying the kernel config:"
-		wrap_warning "    CONFIG=/path/to/kernel/.config $0"
+		wrap_warning "    CONFIG=/path/to/kernel/.config $0 or $0 /path/to/kernel/.config"
 		exit 1
 	fi
 fi