diff --git a/cron.pl b/cron.pl
index c6b0f70f9848a48e8be4061a56b9458abc21a314..e24bdfc088da2afc9d44f52f107e4563f2f6bc87 100755
--- a/cron.pl
+++ b/cron.pl
@@ -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";
+    }
 }