Skip to content
Snippets Groups Projects
Commit 75ab8852 authored by Marcel Huber's avatar Marcel Huber
Browse files

* quieting cd -

parent 56f2e335
Branches
Tags
No related merge requests found
......@@ -183,7 +183,7 @@ SearchJoinedDir()
# check if we got a searchable directory first
if [ -d "$testpath" -a -r "$testpath" -a -x "$testpath" ]; then
# search for a 'compound' directory name in the given directory
cd $testpath;
cd $testpath && \
for dname in ${firstseg}*${lastseg}* *${lastseg}*; do
if [ -d "${dname}" ]; then
if [ -n "$tmppath" ]; then
......@@ -195,8 +195,8 @@ SearchJoinedDir()
break;
fi;
fi;
done;
cd -;
done; \
cd - >/dev/null;
fi
export ${varname}="${tmppath}"
if [ -z "${tmppath}" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment