mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
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>
This commit is contained in:
parent
67a221be1b
commit
55bbbe04c3
@ -39,6 +39,9 @@ main() {
|
|||||||
if [ -z "${cfg}" ]; then
|
if [ -z "${cfg}" ]; then
|
||||||
printf "error: no config snippet specified\n" >&2; exit 1
|
printf "error: no config snippet specified\n" >&2; exit 1
|
||||||
fi
|
fi
|
||||||
|
if [ ! -e "${cfg}" ]; then
|
||||||
|
printf "error: %s: no such file\n" "${cfg}" >&2; exit 1
|
||||||
|
fi
|
||||||
if [ -z "${dir}" ]; then
|
if [ -z "${dir}" ]; then
|
||||||
dir="${HOME}/br-test-pkg"
|
dir="${HOME}/br-test-pkg"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user