浏览代码

support/test-pkg: check the config snippet exists

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Yann E. MORIN 8 年之前
父节点
当前提交
55bbbe04c3
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      support/scripts/test-pkg

+ 3 - 0
support/scripts/test-pkg

@@ -39,6 +39,9 @@ main() {
     if [ -z "${cfg}" ]; then
         printf "error: no config snippet specified\n" >&2; exit 1
     fi
+    if [ ! -e "${cfg}" ]; then
+        printf "error: %s: no such file\n" "${cfg}" >&2; exit 1
+    fi
     if [ -z "${dir}" ]; then
         dir="${HOME}/br-test-pkg"
     fi