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" ]
|
||||
then
|
||||
cd $@
|
||||
cd "$@"
|
||||
else
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
|
@ -12,7 +12,7 @@ else
|
|||
else
|
||||
if [ $(echo "$1" | grep '^/') ]
|
||||
then cd "$root"$@
|
||||
else cd $@
|
||||
else cd "$@"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue