Skip to content

Commit f9522ee

Browse files
authored
fix(scripts): pass arguments through wrapper to install.sh (#13)
1 parent e82321c commit f9522ee

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

scripts/install

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
#!/bin/bash
2-
# Wrapper script - downloads and executes install
2+
# Wrapper script - downloads and executes install.sh
33
# Supports multiple URL patterns:
44
# curl -fsSL https://clix.sh/install | bash
5+
# curl -fsSL https://clix.sh/install | bash -s v1.0.0
56
#
6-
# Environment variables are passed through to install:
7+
# Arguments are passed through to install.sh (e.g., version)
8+
# Environment variables are also passed through:
79
# CLIX_VERSION, CLIX_INSTALL_DIR, CLIX_NO_MODIFY_PATH, CLIX_SKIP_CHECKSUM
810

911
export CLIX_VERSION="${CLIX_VERSION:-}"
1012
export CLIX_INSTALL_DIR="${CLIX_INSTALL_DIR:-}"
1113
export CLIX_NO_MODIFY_PATH="${CLIX_NO_MODIFY_PATH:-}"
1214
export CLIX_SKIP_CHECKSUM="${CLIX_SKIP_CHECKSUM:-}"
1315

14-
bash -c "$(curl -fsSL https://clix.sh/install.sh)"
16+
# Download install.sh and execute with all arguments passed through
17+
bash <(curl -fsSL https://clix.sh/install.sh) "$@"

0 commit comments

Comments
 (0)