Skip to content
Snippets Groups Projects
Unverified Commit 72098279 authored by Tomasz Maczukin's avatar Tomasz Maczukin
Browse files

Add gnu-tar check for Mac OS users

parent 3d49c9f2
No related branches found
No related tags found
No related merge requests found
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment