diff --git a/bin/docstheme-build-translated.sh b/bin/docstheme-build-translated.sh index c0f4d9b6..246e4e6a 100755 --- a/bin/docstheme-build-translated.sh +++ b/bin/docstheme-build-translated.sh @@ -112,10 +112,13 @@ function add_language_index_to_original { function recover_rst_files { for f in `find $DIRECTORY/source -name '*.rst'`; do - [ -f $f.backup ] && mv $f.backup $f + if [ -f $f.backup ]; then + mv $f.backup $f + fi done } + function remove_pot_files { # remove newly created pot files rm -f ${DIRECTORY}/source/locale/*.pot