summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPang Yan Han <pangyanhan@gmail.com>2011-07-10 06:26:42 +0200
committerAllan McRae <allan@archlinux.org>2011-07-19 02:27:54 +0200
commit333269482a08e02d4e730dd739fc9e8625efde32 (patch)
tree983ccb5ac4fe0b39251c87c371794bfeed62227b /scripts
parentfa3aaa41e3563e8d4632c12cda989a471627aa20 (diff)
downloadpacman-333269482a08e02d4e730dd739fc9e8625efde32.tar.gz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/pacman-key.sh.in2
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