]> git.donarmstrong.com Git - bin.git/commitdiff
check for defined commands
authorDon Armstrong <don@donarmstrong.com>
Thu, 3 Nov 2005 09:37:17 +0000 (09:37 +0000)
committerDon Armstrong <don@donarmstrong.com>
Thu, 3 Nov 2005 09:37:17 +0000 (09:37 +0000)
sa

diff --git a/sa b/sa
index 53f9f72434c88afd14e28b1a07d6292f767089b1..0557d25f952b3d6725e6dda1389cf1c84a5580b5 100755 (executable)
--- a/sa
+++ b/sa
@@ -124,6 +124,6 @@ while (my ($repo,$run_after) = each(%repos)) {
                );
      }
      if ($command =~ /^up(?:date)|checkout$/) {
-         system($run_after,$repo);
+         system($run_after,$repo) if defined $run_after and length $run_after;
      }
 }