Skip to content
Snippets Groups Projects
Commit cfd001ac authored by Martin Klimeš's avatar Martin Klimeš
Browse files

cron: fix warn message

parent 9f2e4fa8
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,10 @@ for my $item (@files) {
}
for my $printer (@files) {
system("$REPO/install.pl --update $printer")
or warn "Error while updating $printer";
system("$REPO/install.pl --update $printer");
if ($? != 0) {
warn "Error while updating $printer";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment