blob: 0fe9697eb873093c14f47e1e2a62fd798cbf5c25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# -*- mode: sh; -*-
local _pwd=$(pwd)
while; do
cd ..
[[ ! -d '.git' && "$(pwd)" != "/" ]] || break
done
if [[ "$(pwd)" == "/" ]]; then
cd $_pwd
echo 'Project root not found' >&2
return 1
fi
|