From 3733d24a9066bdd3e038d642a62cf642abd0b0bf Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 30 Mar 2017 21:26:17 +0200 Subject: Fix -Werror=format-security issues --- configure | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 95d161eb..22673bc4 100755 --- a/configure +++ b/configure @@ -151,13 +151,17 @@ else exit 5 fi res=$(git clone "$url" "$path" 2>&1) - if ! [ $? -eq 0 ] || ! [ -x $git ]; then + if ! [ $? -eq 0 ] || ! [ -d $path ]; then echo "Failed retrieving missing files: $res" exit 5 fi if [[ "$branch" != "" ]]; then pushd "$path" > /dev/null - git checkout "$branch" 2>/dev/null + res=$(git checkout "$branch" 2>&1) + if ! [ $? -eq 0 ]; then + echo "Failed retrieving missing files: $res" + exit 5 + fi popd > /dev/null fi echo "Submodule path '$path': checked out '$branch' (via git clone)" -- cgit v1.2.3-54-g00ecf