Created
August 28, 2015 20:31
-
-
Save thoraxe/9fd15926a261a9767cf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function exec_it() { | |
if [ $verbose == 1 ] | |
then | |
echo "$@" | |
eval "$@" | |
echo | |
else | |
eval "$@" &> /dev/null | |
fi | |
} | |
exec_it oc get namespace default -o json "|" sed -e '/"openshift.io\/sa.scc.mcs"/i "openshift.io/node-selector": "region=infra",' "|" oc replace -f - | |
oc get namespace default -o json | sed -e /"openshift.io\/sa.scc.mcs"/i "openshift.io/node-selector": "region=infra", | oc replace -f - | |
sed: -e expression #1, char 27: expected \ after `a', `c' or `i' | |
error: write /dev/stdout: broken pipe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe the following?