cleaned up bashisms
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user