Skip to content

Commit 13ef9da

Browse files
committed
chore(setup): ensure jq installed on apt systems
1 parent 3c87750 commit 13ef9da

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ fi
112112

113113
echo "Detected OS: $OS_TYPE"
114114

115+
# Ensure jq is present on apt-based Linux/WSL
116+
if [[ "$OS_TYPE" == "Linux" ]] && command -v apt-get >/dev/null; then
117+
command -v jq >/dev/null || (sudo apt-get update -y && sudo apt-get install -y jq)
118+
fi
119+
115120
# Handle WSL-specific setup
116121
if [[ "$IS_WSL" == true ]]; then
117122
echo "Setting up WSL-specific configuration..."

0 commit comments

Comments
 (0)