update: no backup for the check command

git-svn-id: https://svn.fhem.de/fhem/trunk@6438 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2014-08-21 07:21:37 +00:00
parent c2214eb414
commit 89e9625467

View File

@@ -112,7 +112,7 @@ doUpdate($$)
$basePath = $1;
$ctrlFileName = $2;
if(AttrVal("global", "backup_before_update", 0)) {
if(AttrVal("global", "backup_before_update", 0) && $arg ne "check") {
my $cmdret = AnalyzeCommand(undef, "backup");
if ($cmdret !~ m/backup done.*/) {
uLog 1, "Something went wrong during backup: $cmdret";