add pwsh as alias for powershell
[webi-installers/.git] / pwsh / install.sh
diff --git a/pwsh/install.sh b/pwsh/install.sh
new file mode 100644 (file)
index 0000000..194fae2
--- /dev/null
@@ -0,0 +1,10 @@
+# title: PowerShell (pwsh alias)
+# homepage: https://webinstall.dev/powershell
+# tagline: Alias for https://webinstall.dev/powershell
+# alias: powershell
+# description: |
+#   See https://webinstall.dev/powershell
+
+echo "'pwsh@${WEBI_TAG:-stable}' is an alias for 'powershell@${WEBI_VERSION:-}'"
+WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
+curl -fsSL "$WEBI_HOST/powershell@${WEBI_VERSION:-}" | bash