Say I have the following bash script...
bin/my-script.sh
#!/usr/bin/env bash
echo "Hello world!"
And the following Rakefile...
namespace :dev do
desc "Execute my- scripts"
task :done do
sh "bin/my-script.sh"
end
end
And I'm running rake dev:done
through cmd
in the root directory..
Why do I receive the following error?
> rake dev:done
bin/my-script.sh
rake aborted!
Command failed with status (127): [bin/my-script.sh...]