diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-25 15:11:50 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-25 15:11:50 +0200 |
| commit | 30185044bf831069b346a58b2b717b0f45a63f86 (patch) | |
| tree | 5bf86ca8abc789d1fc44193845726dab37facabd /bin/gitlab-projects | |
| parent | f0eb80177b77a16ace120f9fb8d03a36924c32b5 (diff) | |
| download | gitlab-shell-30185044bf831069b346a58b2b717b0f45a63f86.tar.gz | |
return non-zero status if gitlab-projects or gitlab-keys cmd was not successfulv1.2.0
Diffstat (limited to 'bin/gitlab-projects')
| -rwxr-xr-x | bin/gitlab-projects | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/gitlab-projects b/bin/gitlab-projects index 21e4305..95d0475 100755 --- a/bin/gitlab-projects +++ b/bin/gitlab-projects @@ -16,6 +16,10 @@ require_relative '../lib/gitlab_init' # /bin/gitlab-projects import-project randx/six.git https://github.com/randx/six.git # require File.join(ROOT_PATH, 'lib', 'gitlab_projects') -GitlabProjects.new.exec -exit +# Return non-zero if command execution was not successful +if GitlabProjects.new.exec + exit 0 +else + exit 1 +end |
