From 50c68a6eb7312765ff12aa7d8c17e664fac98755 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 31 Jul 2014 00:12:29 +0400 Subject: [PATCH] Minor refactoring --- .shellrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.5