cleaned up bashisms

This commit is contained in:
Luxferre
2026-07-27 20:33:44 +03:00
parent 3c952b7631
commit 9775b3edc4
9 changed files with 46 additions and 46 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ pngize_raw() {
# 2. body (raw file data)
cat "$1" >> $temp_ppm
# 3. trailing zero bytes
for i in $(seq 1 $remlen); do printf '\x00' >> $temp_ppm; done
for i in $(seq 1 $remlen); do printf '\000' >> $temp_ppm; done
# convert PPM to PNG and remove the temporary PPM
magick ppm:$temp_ppm png:$ofile
rm -f $temp_ppm