Get nextcloud credentials

This commit is contained in:
2021-04-21 22:13:19 +01:00
parent 4c6652a20f
commit ea2931fee8

View File

@@ -0,0 +1,5 @@
#! /bin/bash
TOWER=$(enpasscli -vault="$HOME/Documents/Enpass/Vaults/primary" -sort show "Scarif: Tower" 2>&1)
TOWERUN=$(echo "$TOWER" | grep -Po "(?<=login: )\w+")
TOWERPW=$(echo "$TOWER" | grep -Po "(?<=pass : ).+(?=\")")