Skip to content

Commit 9606f29

Browse files
committed
Fix: update branch name in installer and improve CI robustness
1 parent a1da4c5 commit 9606f29

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

66
set -e
77

@@ -35,12 +35,12 @@ fi
3535
mkdir -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"
3939
SCRIPT_URL="$REPO_URL/bin/bigquery-schema-select"
4040
DEST="$INSTALL_DIR/bigquery-schema-select"
4141

4242
echo -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
4646
fi

0 commit comments

Comments
 (0)