From 3e99c9e7fa88c80c1ab4fdb541fcbb4539e38b71 Mon Sep 17 00:00:00 2001 From: Quanlong Date: Thu, 17 Dec 2015 11:05:09 +0800 Subject: [PATCH] gitlab-ci-multi-runner: Fix symlink Closes Homebrew/homebrew#47096. Signed-off-by: Dominyk Tiller --- Formula/gitlab-ci-multi-runner.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Formula/gitlab-ci-multi-runner.rb b/Formula/gitlab-ci-multi-runner.rb index c39bdf99ab..7116e2cdad 100644 --- a/Formula/gitlab-ci-multi-runner.rb +++ b/Formula/gitlab-ci-multi-runner.rb @@ -31,10 +31,12 @@ class GitlabCiMultiRunner < Formula # Copy from Makefile system "go", "build", "-o", "gitlab-ci-multi-runner", "-ldflags", "-X main.NAME=gitlab-ci-multi-runner -X main.VERSION=#{version} -X main.REVISION=#{commit_sha}" bin.install "gitlab-ci-multi-runner" + bin.install_symlink "#{bin}/gitlab-ci-multi-runner" => "gitlab-runner" end end test do assert_match /gitlab-ci-multi-runner version #{version}/, shell_output("gitlab-ci-multi-runner --version") + assert_match /gitlab-runner version #{version}/, shell_output("gitlab-runner --version") end end