[bin] Strip www. from domains before generating gopass username
This commit is contained in:
parent
8e96c24c7a
commit
0eaa9eae1f
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
DOMAIN=$(echo ${1} | awk -F[/:] '{print $4}')
|
DOMAIN=$(echo ${1} | awk -F[/:] '{print $4}' | sed -E 's_^www\.__')
|
||||||
USER="${DOMAIN}@bascht.com"
|
USER="${DOMAIN}@bascht.com"
|
||||||
notify-send "Copied username to clipboard" "${USER}"
|
notify-send "Copied username to clipboard" "${USER}"
|
||||||
echo "${USER}" | wl-copy
|
echo "${USER}" | wl-copy
|
||||||
|
|
Loading…
Reference in New Issue