cleanup
This commit is contained in:
parent
8ed1d03cd5
commit
c696e11c79
5
pash
5
pash
@ -19,9 +19,8 @@ pw_add() {
|
|||||||
[[ $password ]] ||
|
[[ $password ]] ||
|
||||||
die "Failed to generate a password."
|
die "Failed to generate a password."
|
||||||
|
|
||||||
[[ $1 == */* ]] && {
|
[[ $1 == */* ]] &&
|
||||||
mkdir -p "${1%/*}" || die "Couldn't create category '${1%/*}'."
|
{ mkdir -p "${1%/*}" || die "Couldn't create category '${1%/*}'.";}
|
||||||
}
|
|
||||||
|
|
||||||
"${gpg[0]}" -co "$1.gpg" <<< "$password"
|
"${gpg[0]}" -co "$1.gpg" <<< "$password"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user