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