aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-ximg2pdf.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/img2pdf.sh b/img2pdf.sh
index cdf3f96..a3c9a19 100755
--- a/img2pdf.sh
+++ b/img2pdf.sh
@@ -13,7 +13,7 @@ fi
for img in $( echo `ls -v | egrep \."$ext"$` ) ; do
echo Traitement de "$img"
- convert "$img" "${img:0:-$(( 1 + ${#ext})) }.pdf"
+ img2pdf --output "${img//$ext/pdf}" "$img"
done;
if [ -e "$out" ] ; then