aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2018-09-05 22:34:09 +0200
committerFlorian Bruhin <me@the-compiler.org>2018-09-05 22:34:09 +0200
commit6b887143d70d155eb17db89935d66a7e829ff98a (patch)
treea88ade5037b17922d31c7b641a1a25e6c5ef359a
parent4e8f5f364744cd36cbd83746a9ee2e97ffbd35fb (diff)
downloadhsrvpn-6b887143d70d155eb17db89935d66a7e829ff98a.tar.gz
hsrvpn-6b887143d70d155eb17db89935d66a7e829ff98a.zip
Rename secrets to tokens
-rwxr-xr-xhsrvpn12
1 files changed, 6 insertions, 6 deletions
diff --git a/hsrvpn b/hsrvpn
index aca2fd8..d3c96f3 100755
--- a/hsrvpn
+++ b/hsrvpn
@@ -9,13 +9,13 @@ username=$1
host=vpn.hsr.ch
password=$(keyring get openhsr-connect $username)
-secrets=( $(keyring get hsrvpn-secrets $username) )
+tokens=( $(keyring get hsrvpn-secrets $username) )
-secret=${secrets[0]}
-unset -v 'secrets[0]'
+token=${tokens[0]}
+unset -v 'tokens[0]'
-echo "${secrets[@]}" | keyring set hsrvpn-secrets $username
+echo "${tokens[@]}" | keyring set hsrvpn-secrets $username
-echo "$secret"
+echo "$token"
-printf '%s\n' "$password" "$secret" | sudo openconnect "$host" -u "$username"
+printf '%s\n' "$password" "$token" | sudo openconnect "$host" -u "$username"