refactor!: alias git-config-gpg to old location git-gpg-init
authorAJ ONeal <aj@therootcompany.com>
Fri, 19 Nov 2021 09:51:57 +0000 (09:51 +0000)
committerAJ ONeal <aj@therootcompany.com>
Fri, 19 Nov 2021 09:51:57 +0000 (09:51 +0000)
git-gpg-init/install.ps1 [new file with mode: 0644]
git-gpg-init/install.sh [new file with mode: 0644]

diff --git a/git-gpg-init/install.ps1 b/git-gpg-init/install.ps1
new file mode 100644 (file)
index 0000000..075a61b
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/pwsh
+
+echo "'git-gpg-init@$Env:WEBI_TAG' is an alias for 'git-config-gpg@$Env:WEBI_VERSION'"
+IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
+curl.exe -fsSL "$Env:WEBI_HOST/git-config-gpg@$Env:WEBI_VERSION" | powershell
diff --git a/git-gpg-init/install.sh b/git-gpg-init/install.sh
new file mode 100644 (file)
index 0000000..be869b6
--- /dev/null
@@ -0,0 +1,10 @@
+# title: git-gpg-init (git-config-gpg alias)
+# homepage: https://webinstall.dev/git-config-gpg
+# tagline: Alias for https://webinstall.dev/git-config-gpg
+# alias: git-config-gpg
+# description: |
+#   See https://webinstall.dev/git-config-gpg
+
+echo "'git-gpg-init' is a deprecated alias for 'git-config-gpg'"
+WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
+curl -fsSL "$WEBI_HOST/git-config-gpg" | bash