diff --git a/Makefile b/Makefile index 718b319..afdb3e0 100644 --- a/Makefile +++ b/Makefile @@ -67,8 +67,8 @@ unlock-rpm: # confidence: - @if [[ -e ~/.gnupg ]]; then echo ERROR: '~/.gnupg should not exist. If it does, bugs may polute your .gnupg configuration. If the code has no bugs everything will be fine. Do you feel lucky?'; false ; fi + @if [ -e ~/.gnupg ]; then echo ERROR: '~/.gnupg should not exist. If it does, bugs may polute your .gnupg configuration. If the code has no bugs everything will be fine. Do you feel lucky?'; false ; fi @if which >/dev/null gpg-agent ; then pkill gpg-agent ; rm -rf /tmp/tmp.* ; fi @export PATH=~/gitwork/blackbox/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/local/bin ; tools/confidence_test.sh @if which >/dev/null gpg-agent ; then pkill gpg-agent ; fi - @if [[ -e ~/.gnupg ]]; then echo ERROR: '~/.gnupg was created which means the scripts might be poluting GnuPG configuration. Fix this bug.'; false ; fi + @if [ -e ~/.gnupg ]; then echo ERROR: '~/.gnupg was created which means the scripts might be poluting GnuPG configuration. Fix this bug.'; false ; fi diff --git a/bin/_blackbox_common.sh b/bin/_blackbox_common.sh index 70d5d5a..d466936 100755 --- a/bin/_blackbox_common.sh +++ b/bin/_blackbox_common.sh @@ -260,7 +260,7 @@ function enumerate_subdirs() { function vcs_relative_path() { # Usage: vcs_relative_path file local name="$1" - python -c 'import os ; print(os.path.relpath("'$(pwd -P)'/'"$name"'", "'"$REPOBASE"'"))' + python -c 'import os ; print(os.path.relpath("'"$(pwd -P)"'/'"$name"'", "'"$REPOBASE"'"))' } # diff --git a/tools/confidence_test.sh b/tools/confidence_test.sh index e4e5577..4b20e2f 100755 --- a/tools/confidence_test.sh +++ b/tools/confidence_test.sh @@ -115,7 +115,7 @@ eval $(gpg-agent --homedir "$fake_alice_home" --daemon) GPG_AGENT_INFO_ALICE="$GPG_AGENT_INFO" export GNUPGHOME="$fake_bob_home" -eval $(gpg-agent --homedir "$fake_alice_home" --daemon) +eval $(gpg-agent --homedir "$fake_bob_home" --daemon) GPG_AGENT_INFO_BOB="$GPG_AGENT_INFO" function become_alice() { @@ -127,8 +127,8 @@ function become_alice() { } function become_bob() { - export GNUPGHOME="$fake_alice_home" - export GPG_AGENT_INFO="$GPG_AGENT_INFO_ALICE" + export GNUPGHOME="$fake_bob_home" + export GPG_AGENT_INFO="$GPG_AGENT_INFO_BOB" git config --global user.name "Bob Example" git config --global user.email bob@example.com }