aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-07-06 15:09:08 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-07-06 15:09:08 +0200
commit0847d3c7ef77d55a6e6070b6f3da4a6c20efaa1a (patch)
tree9417966024b73b7ba7cb69c4975d2b755430e759
parentcf7d8ad8ecbe6122d064d574913ad029492958da (diff)
downloadimagefish-0847d3c7ef77d55a6e6070b6f3da4a6c20efaa1a.tar.gz
tweak push-images
-rwxr-xr-xpush-images.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/push-images.sh b/push-images.sh
index a344af2..8ee7366 100755
--- a/push-images.sh
+++ b/push-images.sh
@@ -3,7 +3,7 @@
dest="$HOME/repo/images-testing"
if test ! -d "$dest"; then
- echo "# not found: $dest"
+ echo "# destdir not found ($dest)"
exit
fi
@@ -13,21 +13,21 @@ images=$(ls ${IMAGEFISH_DESTDIR-.}/*.raw \
count=$(echo $images | wc -w)
if test "$count" = "0"; then
- echo "# no images"
+ echo "# no images found"
exit
fi
echo
-echo "# rsync $count uncompressed images"
+echo "# rsync $count uncompressed image(s)"
rsync --verbose --progress $images $dest
echo
-echo "# compress $count images"
+echo "# compress $count image(s)"
rm -f ${IMAGEFISH_DESTDIR-.}/*.xz
xz --verbose --keep $images
echo
-echo "# rsync compressed images"
+echo "# rsync compressed image(s)"
rsync --verbose --progress \
${IMAGEFISH_DESTDIR-.}/*.xz \
$dest