From 72098279b68e3fd730d4ce3b66f563e9f25be812 Mon Sep 17 00:00:00 2001
From: Tomasz Maczukin <tomasz@maczukin.pl>
Date: Tue, 4 Sep 2018 20:32:51 +0200
Subject: [PATCH] Add gnu-tar check for Mac OS users

---
 ci/package | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/ci/package b/ci/package
index 36b529d18..5bd0bef5c 100755
--- a/ci/package
+++ b/ci/package
@@ -9,6 +9,20 @@ create_package() {
     local customOptions
     read -r -a customOptions <<< "${@}"
 
+    local uname_s
+    uname_s=$(uname -s)
+
+    if [[ "${uname_s}" == "Darwin" ]]; then
+        if ! which gtar >/dev/null 2>&1; then
+            echo
+            echo -e "\\033[31;1m"
+            echo "Seems that you're using Mac OS. In case of troubles with packaging ensure"
+            echo "that gnu-tar is installed. You can do this e.g. with 'brew install gnu-tar'"
+            echo -e "\\033[0m"
+            echo
+        fi
+    fi
+
 	mkdir -p "out/${packageType}/"
 
     fpm \
-- 
GitLab