add archiver as alias for arc
authorAJ ONeal <aj@therootcompany.com>
Sat, 19 Sep 2020 09:02:20 +0000 (09:02 +0000)
committerAJ ONeal <aj@therootcompany.com>
Wed, 23 Sep 2020 02:20:54 +0000 (02:20 +0000)
archiver/install.ps1 [new file with mode: 0644]
archiver/install.sh [new file with mode: 0644]

diff --git a/archiver/install.ps1 b/archiver/install.ps1
new file mode 100644 (file)
index 0000000..9c30b1f
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/pwsh
+
+echo "'archiver@$Env:WEBI_TAG' is an alias for 'arc@$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/arc@$Env:WEBI_VERSION" | powershell
diff --git a/archiver/install.sh b/archiver/install.sh
new file mode 100644 (file)
index 0000000..e5a5e72
--- /dev/null
@@ -0,0 +1,10 @@
+# title: Archiver (arc alias)
+# homepage: https://webinstall.dev/arc
+# tagline: Alias for https://webinstall.dev/arc
+# alias: arc
+# description: |
+#   See https://webinstall.dev/arc
+
+echo "'archiver@${WEBI_TAG:-stable}' is an alias for 'arc@${WEBI_VERSION:-}'"
+WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
+curl -fsSL "$WEBI_HOST/arc@${WEBI_VERSION:-}" | bash