I do realise that I've written code for bash. However it's using /bin/sh in this case. How do I re-write this.
This:
Step 8/17 : RUN if [ "$KEY" == "" ] ; then echo "SSH key is not set, aborting" ; exit 1 ; else echo "SSH key is set" ; fi
Results in:
/bin/sh: 1: [: unexpected operator
And this:
Step 7/15 : RUN if test "$KEY" == "" ; then echo "SSH key is not set, aborting" ; exit 1 ; else echo "SSH key is set" ; fi
Results in:
/bin/sh: 1: test: unexpected operator