From 8b758646d254ac9224d91ee255048d9f404f3fbb Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 9 Oct 2014 22:01:11 +0300 Subject: [PATCH] install.run: move ifs to the end --- install.run | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/install.run b/install.run index b92de4d6..05710031 100755 --- a/install.run +++ b/install.run @@ -4,18 +4,6 @@ set -x export MIKAELA_GREP=$HOME/.MIKAELA_GREP -if [ -f $HOME/.MKAYSIGREP ] -then - mv $HOME/.MKAYSIGREP $MIKAELA_GREP -fi - -if [ -f "$MIKAELA_GREP" ] -then - echo "MIKAELA_GREP has been used previously, Installing/Upgrading." - bash -x ./.install.MIKAELA_GREP.run -fi - - cat bashrc > ~/.bashrc cat tmux.conf > ~/.tmux.conf cat zshrc > ~/.zshrc @@ -43,6 +31,17 @@ bash -x ./chmod& 2>/dev/null cat chmod > ~/chmod chmod a+xr ~/chmod +if [ -f $HOME/.MKAYSIGREP ] +then + mv $HOME/.MKAYSIGREP $MIKAELA_GREP +fi + +if [ -f "$MIKAELA_GREP" ] +then + echo "MIKAELA_GREP has been used previously, Installing/Upgrading." + bash -x ./.install.MIKAELA_GREP.run +fi + set +x # vim : set ft=sh : #chmod 700 $HOME -R