8 lines
133 B
Bash
Executable File
8 lines
133 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# cd's to the parent directory until a .git folder is found
|
|
while [ ! -d ".git" ] && [ ! "$PWD" == "/" ]
|
|
do
|
|
cd ..
|
|
done
|