From: Oleg Broytman Date: Wed, 30 Jul 2014 20:12:29 +0000 (+0400) Subject: Minor refactoring X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=50c68a6eb7312765ff12aa7d8c17e664fac98755;p=dotfiles.git Minor refactoring --- diff --git a/.shellrc b/.shellrc index 565347d..e348ff2 100644 --- a/.shellrc +++ b/.shellrc @@ -153,15 +153,13 @@ mc() { mc_type="`mc_type.py $mc`" if [ "$mc_type" = old ]; then $mc -P $MC_SLOW $MC_XTERM "$@" > "$MC_PWD_FILE" - rc=$? - MC_FOUND=YES elif [ "$mc_type" = new ]; then $mc -P "$MC_PWD_FILE" $MC_SLOW $MC_XTERM "$@" - rc=$? - MC_FOUND=YES else continue fi + rc=$? + MC_FOUND=YES cd "`cat \"$MC_PWD_FILE\"`" && /bin/rm "$MC_PWD_FILE" break fi