| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg_doLastCommand { |
| |
| |
| |
| |
| local EXTENSION=$(render_getConfigOption "$ACTION" '2') |
| |
| |
| |
| |
| local COMMAND=$(render_getConfigOption "$ACTION" '3-') |
| |
| |
| |
| |
| local FILE='' |
| local FILES=$(cli_getFilesList $OUTPUT --pattern=".+\.${EXTENSION}") |
| |
| for FILE in $FILES;do |
| |
| |
| |
| |
| |
| identify -quiet ${FILE} > /dev/null |
| if [[ $? -ne 0 ]];then |
| continue |
| fi |
| |
| |
| cli_printMessage "${FILE}" --as-updating-line |
| |
| |
| |
| eval ${COMMAND} ${FILE} |
| |
| |
| |
| if [[ $? -ne 0 ]];then |
| exit |
| fi |
| |
| done |
| |
| } |