From 55bbbe04c31dd32bd2f4eb8c1c27e95abea666d8 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Sun, 12 Feb 2017 15:53:06 +0100 Subject: support/test-pkg: check the config snippet exists Signed-off-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- support/scripts/test-pkg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/support/scripts/test-pkg b/support/scripts/test-pkg index 9066fa066..11ec18ca5 100755 --- a/support/scripts/test-pkg +++ b/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 -- cgit v1.2.3