If I select the Run Shell Script action in Automator, it has a drop down menu filled with possible shells:
/bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh /usr/bin/perl /usr/bin/python /usr/bin/ruby /Users/iain/Library/Frameworks/zsh/Programs/zsh
I reckon that some of that list came from
/etc/shells, especially as it has tacked on my custom zsh at the end (unless it's read the currently selected shell from somewhere else). I also have an updated Ruby in
/opt/rubies/ruby-2.1.2/ which I'd like to use for this shell script action.
Would anyone know how I can add it to the list? I've tried adding it to
/etc/shells which didn't work (and seems like a horrible hack). Doing that removed the custom zsh from the list too!
Also, when I first pull in the action my current shell (the custom zsh) is automatically selected. If I try to use the drop down and re-select the custom zsh, it selects
/bin/bash instead and removes the custom zsh from the list. If, however, I leave the custom zsh select and I save the workflow and restart automator, the custom zsh is missing and there is no shell selected for the action.
I could use one of the existing shells to call the custom Ruby, but it would obviously be easier to remove a layer of redirection
Any help with this will be much appreciated.