Fix cd-improved for paths with spaces 😜
This commit is contained in:
parent
1651c3d89b
commit
e809c1534c
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ root="$(git rev-parse --show-toplevel 2>/dev/null)"
|
||||||
|
|
||||||
if [ -z "$root" ]
|
if [ -z "$root" ]
|
||||||
then
|
then
|
||||||
cd $@
|
cd "$@"
|
||||||
else
|
else
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
|
@ -12,7 +12,7 @@ else
|
||||||
else
|
else
|
||||||
if [ $(echo "$1" | grep '^/') ]
|
if [ $(echo "$1" | grep '^/') ]
|
||||||
then cd "$root"$@
|
then cd "$root"$@
|
||||||
else cd $@
|
else cd "$@"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue