-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev
More file actions
executable file
·26 lines (21 loc) · 729 Bytes
/
Copy pathdev
File metadata and controls
executable file
·26 lines (21 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
set -euo pipefail
# Bootstrap script: installs just if needed, then runs `just bootstrap`
install_just() {
echo "Installing just..."
if command -v cargo &> /dev/null; then
cargo install just
elif command -v brew &> /dev/null; then
brew install just
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ~/.local/bin
export PATH="$HOME/.local/bin:$PATH"
else
echo "Error: Could not install just. Please install manually: https://github.com/casey/just#installation"
exit 1
fi
}
if ! command -v just &> /dev/null; then
install_just
fi
just bootstrap "$@"