HCAI-Lab/w2-consensus-deepdive-unlearning-artifacts / social-data-attribution-w2 /scripts /audit /check_portable_paths.sh
| set -euo pipefail | |
| # Reject tracked paths that are illegal on Windows, so a checkout never aborts | |
| # on another platform. Flags the reserved characters : * ? " < > | and any path | |
| # component ending in a dot or space. Dependency-free; runs in CI and locally. | |
| cd "$(git rev-parse --show-toplevel)" | |
| bad_chars="$(git ls-files | grep -E '[:*?"<>|]' || true)" | |
| bad_endings="$(git ls-files | grep -E '(^|/)[^/]*[ .](/|$)' || true)" | |
| offenders="$(printf '%s\n%s\n' "$bad_chars" "$bad_endings" | grep -v '^$' | sort -u || true)" | |
| if [ -n "$offenders" ]; then | |
| echo "Windows-illegal tracked paths found (reserved chars : * ? \" < > | or trailing dot/space):" | |
| echo "$offenders" | sed 's/^/ /' | |
| echo | |
| echo "Rename these so the repo can be checked out on Windows." | |
| exit 1 | |
| fi | |
| echo "OK: no Windows-illegal tracked paths." | |
Xet Storage Details
- Size:
- 836 Bytes
- Xet hash:
- 82e6e959b00f4ba673768153fc8a65847a1978e3d0b8fc314be0015c535c3a2f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.