blob: dc9d6d12ab6fe4cb727e4a8db546f38dbd7a2a1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/env bash
#
# Find secrets.
#
# Load functions
LIB="`dirname $0`/../functions"
source "$LIB" || exit 1
# Aditional parameters
CWD="`pwd`"
# Avoid leading slash
shift
ARGS="`echo "$*" | sed -e "s|^/*||"`"
# Run find command
cd "$KEYDIR/$RELATIVE_PATH" && find | grep -i "$ARGS" | sed -e 's|^./||g'
cd "$CWD"
|