diff options
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_source_debian-live | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/helpers/lh_source_debian-live b/helpers/lh_source_debian-live index cd252ce..36638f6 100755 --- a/helpers/lh_source_debian-live +++ b/helpers/lh_source_debian-live @@ -60,18 +60,20 @@ cp -a config source/debian-live # Create tarball cd source +SUFFIX="$(date +%Y%m%d.%s)" + if gzip --help | grep -qs '\-\-rsyncable' then - tar cf debian-live-config_$(date +%Y%m%d.%s).tar debian-live - gzip --rsyncable --best debian-live-config_$(date +%Y%m%d.%s).tar + tar cf debian-live-config_${SUFFIX}.tar debian-live + gzip --rsyncable --best debian-live-config_${SUFFIX}.tar else - tar cfz debian-live-config_$(date +%Y%m%d.%s).tar.gz debian-live + tar cfz debian-live-config_${SUFFIX}.tar.gz debian-live fi cd "${OLDPWD}" rm -rf source/debian-live/config -mv source/debian-live-config_*.tar.gz source/debian-live +mv source/debian-live-config_${SUFFIX}.tar.gz source/debian-live # Creating stage file Create_stagefile .stage/source_debian-live |