| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
path="$1" |
| 4 |
passfile="$PREFIX/$path.gpg" |
| 5 |
check_sneaky_paths "$path" |
| 6 |
|
| 7 |
if [[ -f $passfile ]]; then |
| 8 |
$GPG -d "${GPG_OPTS[@]}" "$passfile" | tail -n +2 || exit $? |
| 9 |
elif [[ -z $path ]]; then |
| 10 |
die "" |
| 11 |
else |
| 12 |
die "Error: $path is not in the password store." |
| 13 |
fi |