From c5f9f7fcc49a0f26c654b6ba6b3f2a910a8c15d1 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 24 Jan 2019 20:20:45 +0100 Subject: [PATCH] Handle correct script exit code --- export-contacts.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/export-contacts.sh b/export-contacts.sh index 21bded3..844a5eb 100755 --- a/export-contacts.sh +++ b/export-contacts.sh @@ -289,3 +289,5 @@ $result = $export -> export_user_contacts( if ($out) fclose($out); + +exit($result?0:1);