bin: Ignore www subdomain in passget
This commit is contained in:
parent
8e3915f45f
commit
b7bcd4b381
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ set -euo pipefail
|
|||
# "real" regexes!
|
||||
#
|
||||
# shellcheck disable=SC2001
|
||||
url=$(sed -E 's%https?://%%' <<< "$1")
|
||||
url=$(sed -E 's%https?://(www\.)?%%' <<< "$1")
|
||||
mapfile -t matches < <(op list items | jq -c '.[] | select(.overview.url and (.overview.url | contains("'"${url}"'"))) | { uuid: .uuid, url: .overview.url, vault: .vaultUuid }')
|
||||
|
||||
if [ "${#matches[@]}" -eq 0 ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue