I'm using S6 v3 with a working configuration until the latest addition, which I'm stuck with.
I'm trying to check whether an env. variable is certain value, so I can execute a command.
Here's what I have:
#!/usr/bin/with-contenv sh
if [["dev" = "$APP_ENV"]]; then\
exec printf '#################################################################';\
fi
I've tried various variations, including the use of test
function.
No solutions to be found online.
I assume it's a silly issue. Please let me know what is the issue and where I can learn more about the syntax used with S6 executables (the script above runs as expected in host machine with #!/usr/bin/env sh
)