From 705a68d5e0dac8a96182d5dbf2526fbb4e223952 Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Thu, 23 Nov 2023 12:39:57 +0100 Subject: [PATCH] fix: install operator-sdk on macos local dev env (#160) --- utils/install-operator-sdk.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/install-operator-sdk.sh b/utils/install-operator-sdk.sh index 3c8ba0dc..18b55ec4 100755 --- a/utils/install-operator-sdk.sh +++ b/utils/install-operator-sdk.sh @@ -16,9 +16,9 @@ if [ ! -f "$1" ]; then # GPG can hit "no route for host" if using IPv6 on mac (https://github.com/rvm/rvm/issues/4215#issuecomment-486609350) if [[ $OS == 'darwin' ]]; then - mkdir -p "/Users/runner/.gnupg" + mkdir -p "$HOME/.gnupg" echo "Disabling ipv6 for gpg on mac" - echo "disable-ipv6" > /Users/runner/.gnupg/dirmngr.conf + echo "disable-ipv6" > $HOME/.gnupg/dirmngr.conf gpgconf --kill all fi