diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/gitlab-keys | 8 | ||||
| -rwxr-xr-x | bin/gitlab-projects | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/bin/gitlab-keys b/bin/gitlab-keys index 26d46cd..2a8aea1 100755 --- a/bin/gitlab-keys +++ b/bin/gitlab-keys @@ -12,6 +12,10 @@ require_relative '../lib/gitlab_init' # require File.join(ROOT_PATH, 'lib', 'gitlab_keys') -GitlabKeys.new.exec -exit +# Return non-zero if command execution was not successful +if GitlabKeys.new.exec + exit 0 +else + exit 1 +end 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 |
