blob: 6fcce73c1ce151ff3572ab10ed87438f0086b6d4 (
plain)
1
2
3
4
5
6
|
#! /bin/sh
# filter_secrets : lines string |> lines secrets-file-candidate
set -euf
# Notice how false positives are possible.
sed -n 's:^\(.*/\)\?\(secrets/.*\):'"${PWD//:/\\:}"'/\2:p'
|