[packages/gitlab-ce] avoid passing command itself as arguments to subcommand
glen
glen at pld-linux.org
Mon Aug 22 23:45:12 CEST 2016
commit c19bdbf1f87282174d23991b9b2b919a55c74061
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Aug 23 00:44:55 2016 +0300
avoid passing command itself as arguments to subcommand
gitlab-ctl.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gitlab-ctl.sh b/gitlab-ctl.sh
index 39bff2c..088aafa 100755
--- a/gitlab-ctl.sh
+++ b/gitlab-ctl.sh
@@ -66,7 +66,8 @@ posttrans() {
EOF
}
-case "$1" in
+COMMAND=$1; shift
+case "$COMMAND" in
preinst)
preinst
;;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gitlab-ce.git/commitdiff/c19bdbf1f87282174d23991b9b2b919a55c74061
More information about the pld-cvs-commit
mailing list