Shell script: Difference between revisions

Content deleted Content added
m Reverted edits by 200.40.120.147 (talk) to last revision by Discospinster (HG)
Line 62:
mv jpg.to.png "$png" # if it worked, rename the temporary PNG image to the correct name
else # ...otherwise complain and exit from the script
<b>echo</b> 'jpg2png: error: failed output saved in "jpg.to.png".' >&2
exit 1
fi # the end of the "if" test construct