From 9f3e576348e49529e7aee9a3fcfc689a6cafd3cc Mon Sep 17 00:00:00 2001 From: orion1024 Date: Sat, 30 Apr 2016 10:55:07 +0200 Subject: [PATCH] Adding CURL check in t6.pl Aborts immediately if CURL not found, to avoid misleading errors later. --- csync/tests/ownCloud/t6.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/csync/tests/ownCloud/t6.pl b/csync/tests/ownCloud/t6.pl index 71ea39698..5e456112f 100755 --- a/csync/tests/ownCloud/t6.pl +++ b/csync/tests/ownCloud/t6.pl @@ -31,6 +31,13 @@ use strict; print "Hello, this is t6, a tester for csync with ownCloud.\n"; +# Checking CURL is installed to avoid misleading errors later... +system(("curl", "--help", ">", "/dev/null")); +if ($? != 0) { + print "CURL is needed for this script, aborting with error\n"; + exit 1; +} + initTesting(); sub createPostUpdateScript($)