Skip to content

Instantly share code, notes, and snippets.

@sandikata
Created September 14, 2019 11:36
Show Gist options
  • Save sandikata/4d09c2af1722d533ed67e8bae6794216 to your computer and use it in GitHub Desktop.
Save sandikata/4d09c2af1722d533ed67e8bae6794216 to your computer and use it in GitHub Desktop.
#!/bin/bash
pbzip2=$(whereis pbzip2 | cut -d" " -f2)
if [ -f "$pbzip2" ]; then
echo "pbzip2 found on your system!" && COMPRESSIONPROGRAM="--use-compress-program=pbzip2"
else
echo "pbzip2 not found on your system, using bzip2 instead!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment