summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/password-store.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index c3824f9..5e9fb03 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -332,8 +332,11 @@ cmd_show() {
echo "${path%\/}"
fi
tree -C -l --noreport "$PREFIX/$path" | tail -n +2 | sed 's/\.gpg$//'
+ elif [[ -z $path ]]; then
+ echo "Error: password store is empty. Try \"pass init\"."
+ exit 1
else
- echo "$path is not in the password store."
+ echo "Error: $path is not in the password store."
exit 1
fi
}