File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,17 +23,21 @@ jobs:
2323 - name : Verify installer
2424 run : |
2525 # Mocking the installation directory to avoid permission issues in CI
26- export PATH="$HOME/.local/bin:$PATH"
27- mkdir -p "$HOME/.local/bin"
26+ export INSTALL_DIR="$HOME/.local/bin"
27+ mkdir -p "$INSTALL_DIR"
28+ export PATH="$INSTALL_DIR:$PATH"
2829
2930 # Test the installer script
3031 bash ./install.sh
3132
3233 # Verify the binary was installed and is executable
33- if [[ ! -x "$HOME/.local/bin/bigquery-schema-select" ]]; then
34- echo "Installer failed to place executable at ~/.local/bin/bigquery-schema-select"
34+ if [[ ! -x "$INSTALL_DIR/bigquery-schema-select" ]]; then
35+ echo "Installer failed to place executable at $INSTALL_DIR/bigquery-schema-select"
36+ ls -R "$HOME/.local"
3537 exit 1
3638 fi
3739
38- # Verify it runs
40+ # Verify it runs using the PATH
41+ hash -r
42+ which bigquery-schema-select
3943 bigquery-schema-select --help
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ By generating an explicit `SELECT` statement that recursively expands `RECORD` a
2222
2323#### Option 1: One-liner installer (Recommended)
2424``` shell script
25- curl -fsSL https://raw.githubusercontent.com/fpopic/bigquery-schema-select/main /install.sh | bash
25+ curl -fsSL https://raw.githubusercontent.com/fpopic/bigquery-schema-select/master /install.sh | bash
2626```
2727
2828#### Option 2: Homebrew
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# bigquery-schema-select installer
4- # Usage: curl -fsSL https://raw.githubusercontent.com/fpopic/bigquery-schema-select/main /install.sh | bash
4+ # Usage: curl -fsSL https://raw.githubusercontent.com/fpopic/bigquery-schema-select/master /install.sh | bash
55
66set -e
77
3535mkdir -p " $INSTALL_DIR "
3636
3737# 3. Download the script
38- REPO_URL=" https://raw.githubusercontent.com/fpopic/bigquery-schema-select/main "
38+ REPO_URL=" https://raw.githubusercontent.com/fpopic/bigquery-schema-select/master "
3939SCRIPT_URL=" $REPO_URL /bin/bigquery-schema-select"
4040DEST=" $INSTALL_DIR /bigquery-schema-select"
4141
4242echo -e " ${BLUE} ==>${NC} Downloading to $DEST ..."
43- if ! curl -sSL " $SCRIPT_URL " -o " $DEST " ; then
43+ if ! curl -fsSL " $SCRIPT_URL " -o " $DEST " ; then
4444 echo -e " ${RED} Error:${NC} Failed to download script. Check your internet connection or the URL."
4545 exit 1
4646fi
You can’t perform that action at this time.
0 commit comments