shithub: img

Download patch

ref: c30ab46dcdc34abeb9bd2bf5de98f77a1578bab0
parent: c2fd0c205a522af67c9dc2eb44ba009f739ab6b6
author: Alex Musolino <alex@musolino.id.au>
date: Sun Nov 26 15:01:28 EST 2023

mkmontage.rc: avoid annoying print

--- a/mkmontage.rc
+++ b/mkmontage.rc
@@ -2,10 +2,8 @@
 
 fn mkmontage{
 	imgs=`{find -name '*.small.JPG' >[2]/dev/null | shuffle >[2]/dev/null | sed $2^q}
-	if(! ~ $#imgs $2){
-		echo 'E: mkmontage: not enough images' >[1=2]
+	if(! ~ $#imgs $2)
 		exit 1
-	}
 	if not{
 		n=`{echo 320/$1 | bc}
 		montage -gravity Center -crop $n^x^$n+0+0 +repage $imgs -geometry $n^x^$n -thumbnail $n^x^$n  -mode Concatenate -tile $1^x^$1 montage.jpg