aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/maketar
blob: a85fc58b02d9243a098d2909b9e5f902359667fd (plain)
1
2
3
4
5
6
#!/bin/bash
if [ -x "$(which pigz)" ]; then
    exec tar cf - "${1%%/}/" | pigz > "${1%%/}.tgz"
else
    exec tar czf "${1%%/}.tgz" "${1%%/}/"
fi