14 lines
277 B
Bash
Executable File
14 lines
277 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
path=$1
|
|
passfile="$PREFIX/$path.gpg"
|
|
check_sneaky_paths "$path"
|
|
|
|
if [[ -f $passfile ]]; then
|
|
$GPG -d "${GPG_OPTS[@]}" "$passfile" | tail -n +2 || exit $?
|
|
elif [[ -z $path ]]; then
|
|
die ""
|
|
else
|
|
die "Error: $path is not in the password store."
|
|
fi
|