diff options
| author | tslilc <tslil@posteo.de> | 2026-03-17 10:20:25 +0000 |
|---|---|---|
| committer | tslilc <tslil@posteo.de> | 2026-03-17 10:20:25 +0000 |
| commit | 6fae5c16f07fe9ca5acb273e5c4b1d648ed6fcd9 (patch) | |
| tree | 6329ceec4b709bc8b7f188b7e159fe2d96cad37f | |
| parent | 4ccfc6e2fd4b5ef445b883c03b3be8c911286bdc (diff) | |
sand: rework old soc script
| -rwxr-xr-x | sand (renamed from soc) | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,10 @@ #!/usr/bin/env sh +if [ -z "$1" ]; then + echo "Must provide a project directory to mount" + exit 1 +fi; + bwrap \ --ro-bind /usr /usr \ --ro-bind /lib /lib \ @@ -20,7 +25,6 @@ bwrap \ --bind ~/.cache/uv /home/$(whoami)/.cache/uv \ --bind ~/.cache/huggingface /home/$(whoami)/.cache/huggingface \ --bind ~/.cache/opencode /home/$(whoami)/.cache/opencode \ - --bind ~/code/workspace /home/$(whoami)/project \ --bind ~/.local/bin/vibe /home/$(whoami)/.local/bin/vibe \ --bind ~/.cargo /home/$(whoami)/.cargo \ --bind ~/.rustup /home/$(whoami)/.rustup \ @@ -29,5 +33,6 @@ bwrap \ --setenv USER $(whoami) \ --setenv SHELL /bin/bash \ --setenv PATH /home/$(whoami)/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin \ - --chdir /home/$(whoami)/project \ + --bind "$1" /home/$(whoami)/project/ \ + --chdir /home/$(whoami)/project/ \ bash |
