Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/hop/blob/main/tools/check-parking-lot.sh # hop Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key. Brought by drakestapleton Sign in to star 1 stars 1 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `hop / tools / check-parking-lot.sh` 12 lines ยท 573 bytes Raw Blame History 1 #!/bin/sh 2 set -eu 3 cd "$(dirname "$0")/.." 4 work=$(mktemp -d "${TMPDIR:-/tmp}/hop-parking-check.XXXXXXXX") 5 trap 'rm -rf "$work"' EXIT HUP INT TERM 6 sed "s#HOP_DIR#$PWD#" toolchain/overlay.yaml > "$work/overlay.yaml" 7 swiftc -swift-version 5 -vfsoverlay "$work/overlay.yaml" -Xcc -ivfsoverlay -Xcc "$work/overlay.yaml" Sources/ParkingLot.swift tests/ParkingLotChecks.swift -o "$work/check" 8 "$work/check" 9 if [ "$#" -gt 0 ]; then 10 mkdir "$work/profile" 11 HOP_CONFIG_DIR="$work/profile" /usr/bin/perl -e 'alarm 60; exec @ARGV or die $!' "$1/Contents/MacOS/Hop" --selftest-flow 12 fi