mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix check-config.sh usage
Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
parent
aa073ac05e
commit
82fda400b8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue