unalias command in the right way
This commit is contained in:
parent
b05386207a
commit
dbf44e0456
@ -304,21 +304,21 @@ function kexec {
|
|||||||
{
|
{
|
||||||
echo "Usage : $0 [options] [--]
|
echo "Usage : $0 [options] [--]
|
||||||
Options:
|
Options:
|
||||||
-C kubectl context
|
-K kubectl context
|
||||||
-R not randomly select pod
|
-R not randomly select pod
|
||||||
-n NAMESPACE
|
-n NAMESPACE
|
||||||
-p PROJECT
|
-p PROJECT
|
||||||
-h Display this message"
|
-h Display this message"
|
||||||
}
|
}
|
||||||
while getopts ":hvC:Rp:" opt
|
while getopts ":hvK:Rp:" opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
C) KCONTEXT=$OPTARG ;;
|
|
||||||
R) RAN=false ;;
|
R) RAN=false ;;
|
||||||
h) usage; return 0 ;;
|
h) usage; return 0 ;;
|
||||||
n) NAMESPACE=$OPTARG ;;
|
n) NAMESPACE=$OPTARG ;;
|
||||||
p) PROJECT=$OPTARG ;;
|
p) PROJECT=$OPTARG ;;
|
||||||
*) echo -e "\n Option does not exist : $OPTARG\n"
|
K) KCONTEXT=$OPTARG ;;
|
||||||
|
*) echo -e "\n Option does not exist: $OPTARG\n"
|
||||||
usage; return 1 ;;
|
usage; return 1 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
@ -433,6 +433,8 @@ function dc {
|
|||||||
function get_ip_of_ssh_hostname {
|
function get_ip_of_ssh_hostname {
|
||||||
ssh -G $1 | awk '/^hostname / { print $2 }'
|
ssh -G $1 | awk '/^hostname / { print $2 }'
|
||||||
}
|
}
|
||||||
|
unalias gc 2>/dev/null
|
||||||
|
unalias gcm 2>/dev/null
|
||||||
function gc {
|
function gc {
|
||||||
while true;do
|
while true;do
|
||||||
users=($GIT_USERS)
|
users=($GIT_USERS)
|
||||||
|
Loading…
Reference in New Issue
Block a user