Closed dereckson closed 3 months ago
This issue is very similar to #1161, but when the container is run with oc rsh instead of docker.
oc rsh
docker
oc is the OpenShift client, and oc rsh allows to get a remote shell in a pod container.
oc
#!/bin/sh oc rsh "$pod" sh -c 'mysql -uroot -p$MARIADB_ROOT_PASSWORD -e "SELECT 1+1;"'
In test-SC2016-oc.sh line 476: oc rsh "$pod" sh -c 'mysql -uroot -p$MARIADB_ROOT_PASSWORD -e "SELECT 1+1;"' ^-- SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.
It passes, like for sudo and docker commands.
This issue is very similar to #1161, but when the container is run with
oc rsh
instead ofdocker
.oc
is the OpenShift client, andoc rsh
allows to get a remote shell in a pod container.For bugs
Here's a snippet or screenshot that shows the problem:
Here's what shellcheck currently says:
Here's what I wanted or expected to see:
It passes, like for sudo and docker commands.