diff options
author | filip <filip.komar@gmail.com> | 2013-11-01 23:19:58 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2013-11-01 23:19:58 +0100 |
commit | db59a5070381122efb521ca50a34f79792f0bd9d (patch) | |
tree | 5adbd259bdff7d6b64a11ed34af4bddf20f06dd4 | |
parent | af62795fa48d081f6defc9464e048bde17954183 (diff) | |
download | tools-db59a5070381122efb521ca50a34f79792f0bd9d.tar tools-db59a5070381122efb521ca50a34f79792f0bd9d.tar.gz tools-db59a5070381122efb521ca50a34f79792f0bd9d.tar.bz2 tools-db59a5070381122efb521ca50a34f79792f0bd9d.tar.xz tools-db59a5070381122efb521ca50a34f79792f0bd9d.zip |
fix for safer wget
-rwxr-xr-x | check_for_translation_work.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/check_for_translation_work.sh b/check_for_translation_work.sh index b2eece70..2f1b3947 100755 --- a/check_for_translation_work.sh +++ b/check_for_translation_work.sh @@ -7,7 +7,7 @@ # # Filip Komar, 2012, 2013 # Remco Rijnders, 2012 -# $Id: check_for_translation_work.sh 2013-11-01 14:24:00 UTC filip $ +# $Id: check_for_translation_work.sh 2013-11-01 22:19:00 UTC filip $ # # Please see git for a list of changes to this script. # @@ -148,13 +148,13 @@ date | tee -a "$logfile"_this_run.log # Check if a newer version of this script is available. If yes, show the changes. if [ $check_updates -eq 1 ]; then if [ -f "$git_directory"/translation_projects.dat ]; then - mv "$git_directory"/translation_projects.dat "$git_directory"/translation_projects.dat_previous + cp "$git_directory"/translation_projects.dat "$git_directory"/translation_projects.dat_previous fi - wget -Nq http://gitweb.mageia.org/software/i18n/tools/plain/translation_projects.dat "$git_directory" + wget -Nq http://gitweb.mageia.org/software/i18n/tools/plain/translation_projects.dat "$git_directory"/ if [ -f "$git_directory"/check_for_translation_work.sh ]; then - mv "$git_directory"/check_for_translation_work.sh "$git_directory"/check_for_translation_work.sh_previous + cp "$git_directory"/check_for_translation_work.sh "$git_directory"/check_for_translation_work.sh_previous fi - wget -Nq http://gitweb.mageia.org/software/i18n/tools/plain/check_for_translation_work.sh "$git_directory" + wget -Nq http://gitweb.mageia.org/software/i18n/tools/plain/check_for_translation_work.sh "$git_directory"/ if [ -f "$git_directory"/check_for_translation_work.sh_previous ]; then diff -q "$git_directory"/check_for_translation_work.sh "$git_directory"/check_for_translation_work.sh_previous > /dev/null if [ $? -eq 1 ]; then # there are differences |