Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Commit

Permalink
Fix init
Browse files Browse the repository at this point in the history
  • Loading branch information
dashohoxha committed Apr 13, 2016
1 parent 629c7b1 commit 7ea0ff1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/cmd/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ cmd_init() {
export EGPG_DIR="$HOME/.egpg"
[[ -n "$1" ]] && export EGPG_DIR="$1"
mkdir -pv "$EGPG_DIR"

# setup $GNUPGHOME
GNUPGHOME="$EGPG_DIR/.gnupg"
mkdir -pv "$GNUPGHOME"
[[ -f "$GNUPGHOME/gpg-agent.conf" ]] || cat <<_EOF > "$GNUPGHOME/gpg-agent.conf"
mkdir -p "$EGPG_DIR/.gnupg"
[[ -f "$EGPG_DIR/gpg-agent.conf" ]] || cat <<_EOF > "$EGPG_DIR/gpg-agent.conf"
pinentry-program /usr/bin/pinentry
default-cache-ttl 300
max-cache-ttl 999999
Expand Down

0 comments on commit 7ea0ff1

Please sign in to comment.