/
githubmirror
/
rclone
Обзор
Документация
Войти
/
githubmirror
/
rclone
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
bin/use-deadlock-detector
14 строк
435 B
Florian Klink
tree-wide: replace /bin/bash with /usr/bin/env bash
11 июн 2024, 14:47
11 июн 2024, 14:47
aed77a8
Код
Авторство
О чём код?
#!/usr/bin/env bash if [[ ! -z $(git status --short --untracked-files=no) ]]; then echo "Detected uncommitted changes - commit before running this" exit 1 fi echo "Installing deadlock detector - use 'git reset --hard HEAD' to undo" go get -v github.com/sasha-s/go-deadlock/... find . -type f -name "*.go" -print0 | xargs -0 sed -i~ 's/sync.RWMutex/deadlock.RWMutex/; s/sync.Mutex/deadlock.Mutex/;' goimports -w . echo "Done"