Commit daacc330 authored by Tomasz Maczukin's avatar Tomasz Maczukin 🌴

Add gnu-tar check for Mac OS users

parent b9314a38
......@@ -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 -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"
mkdir -p "out/${packageType}/"
fpm \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment