commit b02070ce35bd6b328b46d1d181efc7780b11627c
parent b1797cccc1dad708f757cddf4462deaf54c97f95
Author: Nihal Jere <nihal@nihaljere.xyz>
Date: Tue, 5 Oct 2021 16:47:47 -0500
npm: check if repo is already initiialized before initializing
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/npm b/npm
@@ -124,7 +124,8 @@ pw_tree() {
}
pw_init() {
- # TODO: check if .npmcheck already exists
+ [ -e .npmcheck ] && die ".npmcheck already exists"
+
sread master "Enter master password"
sread master2 "Confirm master password"
[ "$master" = "$master2" ] || die "Passwords do not match"