From a6b8dec199e0a2f73f732a23594045503e1ecb4d Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Sun, 10 Feb 2019 21:19:18 +0100 Subject: [PATCH] Fix the ruby bin environment --- bin/bundle | 2 +- bin/rails | 2 +- bin/rake | 2 +- bin/setup | 2 +- bin/update | 2 +- bin/yarn | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/bundle b/bin/bundle index 8d5f7a5..f19acf5 100644 --- a/bin/bundle +++ b/bin/bundle @@ -1,3 +1,3 @@ -#!/usr/bin/env ruby.exe +#!/usr/bin/env ruby ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) load Gem.bin_path('bundler', 'bundle') diff --git a/bin/rails b/bin/rails index bec72ac..0739660 100644 --- a/bin/rails +++ b/bin/rails @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby.exe +#!/usr/bin/env ruby APP_PATH = File.expand_path('../config/application', __dir__) require_relative '../config/boot' require 'rails/commands' diff --git a/bin/rake b/bin/rake index f6ed5a2..1724048 100644 --- a/bin/rake +++ b/bin/rake @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby.exe +#!/usr/bin/env ruby require_relative '../config/boot' require 'rake' Rake.application.run diff --git a/bin/setup b/bin/setup index 237a371..94fd4d7 100644 --- a/bin/setup +++ b/bin/setup @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby.exe +#!/usr/bin/env ruby require 'fileutils' include FileUtils diff --git a/bin/update b/bin/update index 1db4ab5..58bfaed 100644 --- a/bin/update +++ b/bin/update @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby.exe +#!/usr/bin/env ruby require 'fileutils' include FileUtils diff --git a/bin/yarn b/bin/yarn index 3389822..460dd56 100644 --- a/bin/yarn +++ b/bin/yarn @@ -1,4 +1,4 @@ -#!/usr/bin/env ruby.exe +#!/usr/bin/env ruby APP_ROOT = File.expand_path('..', __dir__) Dir.chdir(APP_ROOT) do begin