diff options
Diffstat (limited to 'helpers/lh_binary_net')
-rwxr-xr-x | helpers/lh_binary_net | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/helpers/lh_binary_net b/helpers/lh_binary_net index f97d4c3..3b5076e 100755 --- a/helpers/lh_binary_net +++ b/helpers/lh_binary_net @@ -78,7 +78,14 @@ case "${LH_NET_TARBALL}" in ;; gzip) - tar cfz binary-net.tar.gz "$(basename ${OLDPWD})/${ROOT_DIR}" "$(basename ${OLDPWD})/tftpboot" + if gzip --help | grep -q "\-\-rsyncable" + then + tar cf binary-net.tar "$(basename ${OLDPWD})/${ROOT_DIR}" "$(basename ${OLDPWD})/tftpboot" + gzip --rsyncable --best binary-net.tar + else + tar cfz binary-net.tar.gz "$(basename ${OLDPWD})/${ROOT_DIR}" "$(basename ${OLDPWD})/tftpboot" + fi + mv binary-net.tar.gz "${OLDPWD}" ;; |