I have a shell script
#!/bin/bash
echo "starting"
file="path_to_file/ruby_file.rb"
echo $file
ruby $file
echo "ended"
When I run it from the command line it works fine.
When I double click it on Finder it does not.
I have some puts on the ruby script that are being printed, but I'm making file operations (renaming) and they are not done. More than that, I get the following error:
(I have uncheck automatically close session when it ends)
-bash: shell_session_update: command not found
This is the result:
/path_to_shell_script/renamer.sh; exit;
starting
/path_to_ruby_script/renamer.rb
ruby is renaming
ruby finished renaming
ended
logout
-bash: shell_session_update: command not found -> This doesn't happen when I run it from the command line.