shellchecking

This commit is contained in:
Jonas Forsberg
2020-10-13 09:13:20 +02:00
parent a4bbc226f2
commit 8faaf0922a
4 changed files with 25 additions and 12 deletions

View File

@@ -4,15 +4,15 @@ keepassdb="$HOME/Nextcloud/passwords/Passwords.kdbx"
type qrencode >/dev/null 2>&1 || { printf "qrencode is not installed\n" >&2; exit 1; }
type keepassxc-cli >/dev/null 2>&1 || { printf "KeepassXC is not installed\n" >&2; exit 1; }
printf "Enter password for $keepassdb: "
read -s password
printf "Enter password for %s: " "$keepassdb"
read -r -s password
printf "\n"
printf "Enter device name you want to generate the code for: "
read device
read -r device
printf "Enter the tunnel name: "
read tunnel
read -r tunnel
echo "$password" | keepassxc-cli show -q --attributes Notes "$keepassdb" /Wireguard/"$device"/"$tunnel" | qrencode -t ansiutf8