From: Yann E. MORIN Date: Sun, 12 Feb 2017 14:53:06 +0000 (+0100) Subject: support/test-pkg: check the config snippet exists X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55bbbe04c31dd32bd2f4eb8c1c27e95abea666d8;p=buildroot.git support/test-pkg: check the config snippet exists Signed-off-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- diff --git a/support/scripts/test-pkg b/support/scripts/test-pkg index 9066fa0667..11ec18ca52 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