summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_make_image_archive.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/ptxd_make_image_archive.sh')
-rw-r--r--scripts/lib/ptxd_make_image_archive.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/lib/ptxd_make_image_archive.sh b/scripts/lib/ptxd_make_image_archive.sh
index 650679a2e..e21da5c74 100644
--- a/scripts/lib/ptxd_make_image_archive.sh
+++ b/scripts/lib/ptxd_make_image_archive.sh
@@ -16,8 +16,12 @@ ptxd_make_image_archive_impl() {
ptxd_get_ipkg_files ${image_pkgs} &&
ptxd_make_image_extract_xpkg_files "${pkg_dir}" &&
cd "${pkg_dir}" &&
- echo -e "\nCreating $(ptxd_print_path "${image_image}") ...\n" &&
- tar -zcf "${image_image}" . &&
+ echo -ne "\nCreating $(ptxd_print_path "${image_image}") "
+ if [ -n "${image_label}" ]; then
+ echo -n "with label \"${image_label}\" "
+ fi
+ echo -ne "...\n" &&
+ tar ${image_label_args} -zcf "${image_image}" . &&
rm -r "${pkg_dir}"
}
export -f ptxd_make_image_archive_impl