chore(style): add shebang, set bash strict mode, create function
[webi-installers/.git] / ripgrep / install.sh
index 1805ebb2617382fc35881e0e0f09b6c921010067..9740211545151495faf2dc66393cfbb0c2d2365c 100644 (file)
@@ -1,3 +1,4 @@
+#!/bin/bash
 # title: Ripgrep (alias)
 # homepage: https://webinstall.dev/rg
 # tagline: `ripgrep` (project) is an alias for `rg` (command)
@@ -6,4 +7,5 @@
 #   See https://webinstall.dev/rg
 
 echo "'ripgrep@${WEBI_TAG:-}' (project) is an alias for 'rg@${WEBI_VERSION:-}' (command)"
-curl -fsSL https://webinstall.dev/rg@${WEBI_VERSION:-} | bash
+WEBI_HOST=${WEBI_HOST:-"https://webinstall.dev"}
+curl -fsSL "$WEBI_HOST/rg@${WEBI_VERSION:-}" | bash