aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2011-11-21 19:29:53 +0000
committerNicolas Vigier <boklm@mageia.org>2011-11-21 19:29:53 +0000
commitc452ccaf0e65a9184d5ff63c027a6eb7f4fb6524 (patch)
tree8205aa5d6255fbb9e123ae97f079375af61d1511
parent7da554182b0d7261ee379bb741fcd2b7d3c79951 (diff)
downloadrepoctl-c452ccaf0e65a9184d5ff63c027a6eb7f4fb6524.tar
repoctl-c452ccaf0e65a9184d5ff63c027a6eb7f4fb6524.tar.gz
repoctl-c452ccaf0e65a9184d5ff63c027a6eb7f4fb6524.tar.bz2
repoctl-c452ccaf0e65a9184d5ff63c027a6eb7f4fb6524.tar.xz
repoctl-c452ccaf0e65a9184d5ff63c027a6eb7f4fb6524.zip
exit after error
-rwxr-xr-xrepoctl1
1 files changed, 1 insertions, 0 deletions
diff --git a/repoctl b/repoctl
index cea6ebb..75c7eb8 100755
--- a/repoctl
+++ b/repoctl
@@ -242,6 +242,7 @@ function repolock()
if [ -z "$srcrepo" ]
then
usage_cmd repolock
+ exit 1
fi
$command "${srcrepo[0]}" "${srcrepo[1]}" "${srcrepo[2]}"
}