t9001: style modernisation phase #3
[gitweb.git] / t / lib-gpg.sh
index 05824fa8e4d18252f74c51531d6504039986c078..cd2baef383df7dbea5b1544a162f99573476520e 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-gpg_version=`gpg --version 2>&1`
+gpg_version=$(gpg --version 2>&1)
 if test $? = 127; then
        say "You do not seem to have gpg installed"
 else
@@ -18,6 +18,7 @@ else
                # No password given, to enable non-interactive operation.
                cp -R "$TEST_DIRECTORY"/lib-gpg ./gpghome
                chmod 0700 gpghome
+               chmod 0600 gpghome/*
                GNUPGHOME="$(pwd)/gpghome"
                export GNUPGHOME
                test_set_prereq GPG