10 lines
119 B
Bash
10 lines
119 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
while true; do
|
||
|
[[ "$(pwd)" == "/" ]] && exit 1
|
||
|
[[ -d "./.git" ]] && break
|
||
|
cd ..
|
||
|
done
|
||
|
|
||
|
exec $@
|