| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg_checkModelExportId { |
| |
| local INSTANCE="$1" |
| local EXPORTID="$2" |
| |
| |
| cli_checkFiles -e $INSTANCE |
| |
| |
| if [[ $EXPORTID == '' ]];then |
| cli_printMessage "`gettext "The export id value cannot be empty."`" --as-error-line |
| fi |
| |
| |
| grep "id=\"$EXPORTID\"" $INSTANCE > /dev/null |
| if [[ $? -gt 0 ]];then |
| cli_printMessage "`eval_gettext "There is not export id (\\\$EXPORTID) inside \\\"\\\$TEMPLATE\\\"."`" --as-error-line |
| fi |
| |
| } |
| |