Skip to content

Commit

Permalink
gitlab-shell: fix fallback bin searching
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Jul 16, 2019
1 parent 52fd300 commit a33ddd7
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,16 @@ index 2cb76a8..f59ad5e 100644
end

def api
diff --git a/go/internal/command/fallback/fallback.go b/go/internal/command/fallback/fallback.go
index 2cb76a8..f59ad5e 100644
--- a/go/internal/command/fallback/fallback.go
+++ b/go/internal/command/fallback/fallback.go
@@ -21,7 +21,7 @@
)

func (c *Command) Execute() error {
- rubyCmd := filepath.Join(c.RootDir, "bin", RubyProgram)
+ rubyCmd := filepath.Join("/run/current-system/sw/bin", RubyProgram)

// Ensure rubyArgs[0] is the full path to gitlab-shell-ruby
rubyArgs := append([]string{rubyCmd}, c.Args[1:]...)

0 comments on commit a33ddd7

Please sign in to comment.