fix mcd: no error messages. just do it!

pull/1144/head
Бажуков Георгий 2018-02-08 01:21:52 +05:00
parent b21f7e53b7
commit a028229b33
1 changed files with 7 additions and 2 deletions

View File

@ -116,7 +116,12 @@ catt() {
# mkdir & cd combo
function mcd()
{
mkdir -p $1
mkdir -p $1 2> /dev/null
if [ -d $1 ]; then
cd $1
else
cd $(dirname $1)
fi
}