summaryrefslogtreecommitdiffstats
path: root/configs/process_configs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/process_configs.sh')
-rwxr-xr-xconfigs/process_configs.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/configs/process_configs.sh b/configs/process_configs.sh
index 7517e6de1..846fe2e70 100755
--- a/configs/process_configs.sh
+++ b/configs/process_configs.sh
@@ -14,17 +14,16 @@ die()
switch_to_toplevel()
{
path="$(pwd)"
- while test -n "$path"
+ while test "$path" != "/"
do
- test -d $path/firmware && \
- test -e $path/MAINTAINERS && \
- test -d $path/drivers && \
- break
+ test -e $path/MAINTAINERS && \
+ test -d $path/drivers && \
+ break
path="$(dirname $path)"
done
- test -n "$path" || die "Can't find toplevel"
+ test "$path" != "/" || die "Can't find toplevel"
echo "$path"
}