Changed cdb to cd to dir and cdb to files

This commit is contained in:
Andrea Mistrali 2014-08-18 14:46:42 +00:00
parent 051731fd61
commit 4ba7d2b2b2
1 changed files with 5 additions and 1 deletions

View File

@ -1 +1,5 @@
cd `dirname $1` if [ -d $1 ]; then
cd $1
else
cd `dirname $1`
fi