diff options
author | Pang Yan Han <pangyanhan@gmail.com> | 2011-07-10 12:26:42 +0800 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2011-07-19 10:27:54 +1000 |
commit | 333269482a08e02d4e730dd739fc9e8625efde32 (patch) | |
tree | 983ccb5ac4fe0b39251c87c371794bfeed62227b | |
parent | fa3aaa41e3563e8d4632c12cda989a471627aa20 (diff) | |
download | pacman-333269482a08e02d4e730dd739fc9e8625efde32.tar.xz |
pacman-key: --init: correct creation of gpg.conf
Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r-- | scripts/pacman-key.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pacman-key.sh.in b/scripts/pacman-key.sh.in index 3ed42e68..cb108acc 100644 --- a/scripts/pacman-key.sh.in +++ b/scripts/pacman-key.sh.in @@ -105,7 +105,7 @@ initialize() { chmod 644 ${PACMAN_KEYRING_DIR}/{{pub,sec}ring,trustdb}.gpg # gpg.conf - [[ ! -f ${PACMAN_KEYRING_DIR}/gpg.conf ]] || touch ${PACMAN_KEYRING_DIR}/gpg.conf + [[ -f ${PACMAN_KEYRING_DIR}/gpg.conf ]] || touch ${PACMAN_KEYRING_DIR}/gpg.conf chmod 644 ${PACMAN_KEYRING_DIR}/gpg.conf if ! grep -w -q "lock-never" ${PACMAN_KEYRING_DIR}/gpg.conf &>/dev/null; then echo "lock-never" >> ${PACMAN_KEYRING_DIR}/gpg.conf |