FIx typos

This commit is contained in:
Christer Warén
2025-11-10 19:48:07 +02:00
parent 77a54ef1f6
commit 54409a4197
8 changed files with 36 additions and 26 deletions

View File

@@ -1,4 +1,6 @@
wx-auto(){
wx-login &> /dev/null
wxi-header "Auto"
wxi-restricted
wxi-footer

View File

@@ -1,4 +1,7 @@
wx-settings(){
wx-login &> /dev/null
wx-auto &> /dev/null
wxi-header "Settings"
wxi-restricted --user
wxi-footer

View File

@@ -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

View File

@@ -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/*

View File

@@ -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
}

View File

@@ -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

View File

@@ -28,10 +28,10 @@ wxi-restricted(){
wxi-stop
;;
esac
elif [[ $(hostname -d) = *"devices.waren.io" ]]
elif [[ $(hostname -d) == "devices.waren.io" ]]
then
ORG=warengroup
elif [[ $(hostname -d) = *"devices.christerwaren.fi" ]]
elif [[ $(hostname -d) == "devices.christerwaren.fi" ]]
then
ORG=cwchristerw
fi

31
wx
View File

@@ -52,10 +52,10 @@ wxi-restricted(){
wxi-stop
;;
esac
elif [[ $(hostname -d) = *"devices.waren.io" ]]
elif [[ $(hostname -d) == "devices.waren.io" ]]
then
ORG=warengroup
elif [[ $(hostname -d) = *"devices.christerwaren.fi" ]]
elif [[ $(hostname -d) == "devices.christerwaren.fi" ]]
then
ORG=cwchristerw
fi
@@ -609,6 +609,8 @@ wx-update(){
}
wx-auto(){
wx-login &> /dev/null
wxi-header "Auto"
wxi-restricted
wxi-footer
@@ -628,6 +630,9 @@ wx-clean(){
}
wx-settings(){
wx-login &> /dev/null
wx-auto &> /dev/null
wxi-header "Settings"
wxi-restricted --user
wxi-footer
@@ -658,18 +663,18 @@ wxi-ssh-config(){
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
@@ -747,11 +752,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/*
@@ -818,11 +823,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
}
@@ -850,8 +855,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