stockholm/bin/filter-secrets
2015-05-21 01:56:08 +02:00

7 lines
187 B
Bash
Executable File

#! /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'