From 75b064a121d420c51c76f909b5c7678fdfdf8616 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 19 Nov 2021 09:51:57 +0000 Subject: [PATCH] refactor!: alias git-config-gpg to old location git-gpg-init --- git-gpg-init/install.ps1 | 5 +++++ git-gpg-init/install.sh | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 git-gpg-init/install.ps1 create mode 100644 git-gpg-init/install.sh diff --git a/git-gpg-init/install.ps1 b/git-gpg-init/install.ps1 new file mode 100644 index 0000000..075a61b --- /dev/null +++ b/git-gpg-init/install.ps1 @@ -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 index 0000000..be869b6 --- /dev/null +++ b/git-gpg-init/install.sh @@ -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 -- 2.25.1