From eafd7cfc494b81e478ad32ce235fbd3c25523769 Mon Sep 17 00:00:00 2001 From: Feng Pan Date: Thu, 26 May 2016 20:23:24 -0400 Subject: Add library sourcing error check Change-Id: Ief7fd339fa2ca8661c8e157270aa9b0339d3b637 Signed-off-by: Feng Pan --- ci/clean.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ci/clean.sh') diff --git a/ci/clean.sh b/ci/clean.sh index ac958f6a..b898fc9c 100755 --- a/ci/clean.sh +++ b/ci/clean.sh @@ -18,7 +18,10 @@ RESOURCES=${RESOURCES:-"$CONFIG/images"} LIB=${LIB:-"$CONFIG/lib"} ##LIBRARIES -source $LIB/common-functions.sh +if ! source $LIB/common-functions.sh; then + echo "Failed to source $LIB/common-functions.sh" + exit 1 +fi vm_index=4 ovs_bridges="br-admin br-private br-public br-storage" -- cgit 1.2.3-korg