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
#!/bin/bash | |
# | |
# check oc/login | |
oc whoami 1> /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
echo "ERROR: You need to be logged in the cluster with 'oc' before running this." | |
exit 1 | |
fi |