Skip to content

runShellScript default shell

0

Is there a way to change the default shell for runShellScript in System Manager when you execute a run command? It defaults to sh and that does not behave the same as bash.

asked 3 years ago442 views
1 Answer
0

Hello,

While executing the run command AWS-RunShellScript, first initialize the shell with shebang and then write the commands.

Here is an example of script content

#!/bin/bash
echo "hello world"

Hope this helps

AWS
SUPPORT ENGINEER
answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.