-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·27 lines (21 loc) · 797 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·27 lines (21 loc) · 797 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
27
#!/bin/sh
mkdir -p .esp/ .esp/espup
# Install espup if missing
if [ ! -x ".esp/bin/bin/espup" ]; then
cargo install --locked --root .esp/bin espup
fi
# Run espup install if export file missing
if [ ! -f ".esp/espup/export-esp.sh" ]; then
.esp/bin/bin/espup install --export-file .esp/espup/export-esp.sh
fi
# Install missing cargo tools
for tool in ldproxy espflash cargo-espflash; do
if [ ! -x ".esp/bin/bin/$tool" ]; then
cargo install --locked --root .esp/bin "$tool"
fi
done
if ! command -v direnv >/dev/null 2>&1; then
echo "Warning: direnv is not installed. Install it to automatically load environment variables."
echo "See https://direnv.net/ for installation instructions."
fi
echo "Setup complete. Run 'direnv allow .' to activate the environment."