FIx typos
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
wx-auto(){
|
||||
wx-login &> /dev/null
|
||||
|
||||
wxi-header "Auto"
|
||||
wxi-restricted
|
||||
wxi-footer
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
wx-settings(){
|
||||
wx-login &> /dev/null
|
||||
wx-auto &> /dev/null
|
||||
|
||||
wxi-header "Settings"
|
||||
wxi-restricted --user
|
||||
wxi-footer
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
wxi-ssh-keys(){
|
||||
case ${args['3']} in
|
||||
generate)
|
||||
wxi-ssh-keys-retrieve
|
||||
wxi-ssh-keys-generate
|
||||
wxi-ssh-keys-save
|
||||
wxi-ssh-keys-retrieve ${args['4']}
|
||||
wxi-ssh-keys-generate ${args['4']}
|
||||
wxi-ssh-keys-save ${args['4']}
|
||||
;;
|
||||
sign)
|
||||
wxi-ssh-keys-sign
|
||||
;;
|
||||
retrieve)
|
||||
wxi-ssh-keys-retrieve
|
||||
wxi-ssh-keys-retrieve ${args['4']}
|
||||
;;
|
||||
save)
|
||||
wxi-ssh-keys-save
|
||||
wxi-ssh-keys-save ${args['4']}
|
||||
;;
|
||||
sync)
|
||||
wxi-ssh-keys-sync
|
||||
|
||||
@@ -11,11 +11,11 @@ wxi-ssh-keys-clean(){
|
||||
rm "$HOME/.ssh/keys/$1.sig" &> /dev/null
|
||||
fi
|
||||
else
|
||||
wx-ssh-keys-clean $ORG
|
||||
wxi-ssh-keys-clean $ORG
|
||||
|
||||
if [[ $USERNAME == "cwchristerw" ]]
|
||||
then
|
||||
wx-ssh-keys-clean warengroup
|
||||
wxi-ssh-keys-clean warengroup
|
||||
fi
|
||||
|
||||
for file in ~/.ssh/keys/*
|
||||
|
||||
@@ -2,11 +2,11 @@ wxi-ssh-keys-sign(){
|
||||
wxi-header "SSH / Keys / Sign"
|
||||
wxi-restricted
|
||||
|
||||
wx-ssh-keys-sign-create $ORG sysadmin 3600
|
||||
wxi-ssh-keys-sign-create $ORG sysadmin 3600
|
||||
|
||||
if [[ $USERNAME == "cwchristerw" ]]
|
||||
then
|
||||
wx-ssh-keys-sign-create warengroup sysadmin 3600
|
||||
wxi-ssh-keys-sign-create warengroup sysadmin 3600
|
||||
fi
|
||||
wxi-footer
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ wxi-ssh-keys-sync(){
|
||||
then
|
||||
for name in $(curl https://$VAULT_DOMAIN/v1/cli/metadata/$USERNAME/settings/ssh/keys -X LIST --header "X-Vault-Token: $VAULT_TOKEN" -s | jq -r '.data.keys | @sh' | tr -d \')
|
||||
do
|
||||
echo $name
|
||||
wx-ssh-keys-retrieve $name --multiple
|
||||
wxi-content text $name
|
||||
wxi-ssh-keys-retrieve $name --multiple
|
||||
done
|
||||
fi
|
||||
wxi-footer
|
||||
|
||||
Reference in New Issue
Block a user