From 4a86d41de2b1c5a5ec073879da969cddd5dac967 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 12 2011 15:56:16 +0000 Subject: Update render_svg_checkExportId.sh. --- diff --git a/Scripts/Functions/Render/render_svg_checkExportId.sh b/Scripts/Functions/Render/render_svg_checkExportId.sh index aff8262..b9b4236 100755 --- a/Scripts/Functions/Render/render_svg_checkExportId.sh +++ b/Scripts/Functions/Render/render_svg_checkExportId.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# svg_checkExportId.sh -- This function standardizes the export id +# render_svg_checkExportId.sh -- This function standardizes the export id # used inside svg files and the way of verify them. # # Copyright (C) 2009, 2010, 2011 The CentOS Project @@ -23,7 +23,18 @@ # $Id$ # ---------------------------------------------------------------------- -function svg_checkExportId { +function render_svg_checkExportId { + + local INSTANCE="$1" + local EXPORTID="$2" + + # Verify instance. + cli_checkFiles $INSTANCE + + # Verify export id. + if [[ $EXPORTID == '' ]];then + cli_printMessage "`gettext "The export id value cannot be empty."`" --as-error-line + fi # Check export id inside design templates. grep "id=\"$EXPORTID\"" $INSTANCE > /dev/null