浏览文件
cage-macos-editor
8 行 · 522 B历史下载| 1 | #!/bin/bash |
| 2 | # The project authorization helper starts this fixed executable inside the mount. |
| 3 | set -euo pipefail |
| 4 | project=${PWD##*/} |
| 5 | [[ $project =~ ^[a-f0-9]{24}$ && $PWD == "$HOME/Cage/Projects/$project" ]] |
| 6 | config="$HOME/Library/Application Support/Cage/EditorSessions/$project.yaml" |
| 7 | [[ -f $config && ! -L $config && $(/usr/bin/stat -f %u "$config") == "$(id -u)" ]] |
| 8 | exec /usr/local/libexec/cage-workbench-browser-4.145.0-pw1.65.0/editor/bin/code-server --config "$config" --disable-telemetry --disable-update-check "$PWD" |

