diff --git a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg_createSvgInstance.sh b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg_createSvgInstance.sh index 88358c6..60c9dc3 100755 --- a/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg_createSvgInstance.sh +++ b/Automation/Modules/Locale/Modules/Actions/Modules/Update/Modules/Svg/svg_createSvgInstance.sh @@ -28,7 +28,7 @@ function svg_createSvgInstance { - if [[ $(file -b -i ${SVG_FILE}) =~ '^application/x-gzip$' ]];then + if [[ $(/usr/bin/file -b -i ${SVG_FILE}) =~ '^application/x-gzip$' ]];then /bin/zcat ${SVG_FILE} > ${SVG_INSTANCE} else /bin/cat ${SVG_FILE} > ${SVG_INSTANCE} diff --git a/Automation/Modules/Locale/Modules/File/file.sh b/Automation/Modules/Locale/Modules/File/file.sh index f967709..997f7d9 100755 --- a/Automation/Modules/Locale/Modules/File/file.sh +++ b/Automation/Modules/Locale/Modules/File/file.sh @@ -60,7 +60,10 @@ function file { # Define the rendition type you want to perform. local RENDER_TYPE=${FILE_EXTENSION} - + if [[ ${RENDER_TYPE} == 'svgz' ]];then + RENDER_TYPE='svg' + fi + # Define the translation file you want to use. local -a TRANSLATIONS TRANSLATIONS[0]=${PO_FILE}