This commit is contained in:
Dylan Araps 2019-02-25 08:58:15 +02:00
parent 8ed1d03cd5
commit c696e11c79
1 changed files with 2 additions and 3 deletions

5
pash
View File

@ -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"
} }