So I a have pretty cool & simple shell script that used to work fine-
sass_cssTheme_Compiler.sh:
cd /path/to/cssFiles
perl -pi.bak -e 's/constantsLight/constantsDark/g' header.scss
sass --style compressed header.scss headerDark.css |
perl -pi.bak -e 's/constantsDark/constantsLight/g' header.scss
sass --style compressed header.scss headerLight.css
Basically all ^this^ does is go into my scss file and change the imported variables that the document takes before it sass-compiles it into a css file. Then it will go back in and switch the variables that it imports and then compile it again under a different theme of variables. Now I can upload both themed css sheets to my site in a snap.
To make it even faster, I tried to create a workflow to execute this shell script for me with a simple keyboard shortcut. The workflow is as simple as this- Automator Workflow: Sass Compiling Shell Script
The code for the automator shell script just goes to the proper directory and executes the other shell script as such:
cd /path/to/cssFiles && ./sass_cssTheme_Compiler.sh
A few months ago it was working great... until subsequently I installed El Capitan v. 10.11.2. Now the workflow won't run and all I see is this:
./sass_cssTheme_Compiler.sh: line 4: sass: command not found
./sass_cssTheme_Compiler.sh: line 6: sass: command not found
But sass is, and has always been, installed. The simple commands from the workflow will still work in my terminal.. just not in Automator. Perhaps El Capitan isn't the issue and I'm more lost than I realize but the timing of the error and the OS update is suspicious. I've tried uninstalling and reinstalling ruby in hopes that the libraries will update. I'm obviously very much a rookie so any help or hand-holding I can get with this would be great. Thanks in advance!