]> git.phdru.name Git - dotfiles.git/commitdiff
Minor refactoring
authorOleg Broytman <phd@phdru.name>
Wed, 30 Jul 2014 20:12:29 +0000 (00:12 +0400)
committerOleg Broytman <phd@phdru.name>
Wed, 30 Jul 2014 20:12:29 +0000 (00:12 +0400)
.shellrc

index 565347d3eabb9791c7ef235d578395bdb03e3100..e348ff2e60ba6887f7c2734f8971ebbfb82d994f 100644 (file)
--- 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