From 36670f3e1cccad579b994a29320eeb8e287803b7 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 21 May 2015 01:56:08 +0200 Subject: sh: functions -> bin/ --- bin/filter-secrets | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/filter-secrets (limited to 'bin/filter-secrets') diff --git a/bin/filter-secrets b/bin/filter-secrets new file mode 100755 index 000000000..6fcce73c1 --- /dev/null +++ b/bin/filter-secrets @@ -0,0 +1,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' -- cgit v1.2.3