Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 9c74e6b

Browse files
committed
make sure branch is provided
1 parent 33f142a commit 9c74e6b

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

public/install.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,14 @@ compare_versions() {
4242
}
4343

4444
print_header "Downloading Rollkit source code..."
45-
git clone --depth 1 --branch $1 https://github.com/rollkit/rollkit.git
46-
echo ""
45+
46+
if [ -z "$1" ]; then
47+
print_error "Usage: install.sh <rollkit-tag|branch>"; exit 1
48+
fi
49+
50+
git clone --depth 1 --branch "$1" https://github.com/rollkit/rollkit.git || {
51+
print_error "Failed to clone Rollkit at ref '$1'"; exit 1;
52+
}
4753

4854
cd rollkit || { print_error "Failed to find the downloaded repository."; exit 1; }
4955

0 commit comments

Comments
 (0)