summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-05-06 17:05:58 -0500
committerToby Vincent <tobyv13@gmail.com>2021-05-06 17:05:58 -0500
commit425cdb0f5a31c1f8ea4f5771d5443cdb04fa1c8a (patch)
treea90695ea6b9b85f31b9b370dc99f21a27417d167
parent1da5fd7e383d7631c107685b815e2fb7377e9580 (diff)
fix: finally fixed formatting
-rw-r--r--wsl.install11
1 files changed, 6 insertions, 5 deletions
diff --git a/wsl.install b/wsl.install
index ce8d745..7d3ae52 100644
--- a/wsl.install
+++ b/wsl.install
@@ -5,6 +5,7 @@ mkln ./gitconfig ~/win/.gitconfig
mkln ./gnupg/gpg.conf ~/win/AppData/Roaming/gnupg/gpg.conf
mkln ./gnupg/gpg-agent.conf ~/win/AppData/Roaming/gnupg/gpg-agent.conf
mkln ./gnupg/scdaemon.conf ~/win/AppData/Roaming/gnupg/scdaemon.conf
+show-warnings
mkln() {
source=$(wslpath -w $1)
@@ -12,8 +13,8 @@ mkln() {
cmd.exe /c "mklink $target $source"
}
-echo 'In order to use gpg with git for windows, you need to run'
-echo ''
-echo "\tgit.exe config --system gpg.program 'C:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe'"
-echo ''
-echo "from an admin terminal" \ No newline at end of file
+show-warning() {
+ printf "In order to use gpg with git for windows (and still share gitconfigs), you need to run\n"
+ printf "\tgit.exe config --system gpg.program '%s' \n" "$(wslpath -w "$(command -v gpg.exe)")"
+ printf "from an admin terminal"
+}