Passing arguments to 'Run Shell Script' in Automator
When passing input to Run Shell Script in Automator you need to change Pass input: to stdin to Pass input: as arguments as shown in the example workflow below.