Home > Net >  How to excute bin/setup of Ruby?
How to excute bin/setup of Ruby?

Time:07-01

I am with this file of cloned repo in Ruby:

enter image description here

Anyone knows how to execut the setup file?

I try "ruby bin/setup" but I get this: ruby: no Ruby script found in input (LoadError)

CodePudding user response:

What you have there is actually a bash script and not a ruby script. If the permissions of the file are set to executable you can can just run ./setup to execute the script in the working directory or ./bin/setup from the root project directory.

Otherwise you will need to run chmod x filename to update the file permissions so it is executable.

CodePudding user response:

setup is a bash script, not a Ruby one. Just call it from the command line. e.g. ./bin/setup

  •  Tags:  
  • ruby
  • Related