diff --git a/.travis.yml b/.travis.yml index 5331f7b8..a2bffd87 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ before_script: script: - sudo echo -e "[user]\n\tname = Mitesh Shah\n\temail = root@localhost.com" > ~/.gitconfig - sudo echo "Travis Banch = $TRAVIS_BRANCH" -- sudo bash bin/install.sh $TRAVIS_BRANCH +- sudo bash bin/install $TRAVIS_BRANCH - sudo ee stack install diff --git a/bin/easyengine b/bin/easyengine index f774f92a..7a11d5e9 100644 --- a/bin/easyengine +++ b/bin/easyengine @@ -568,8 +568,12 @@ elif [ "$EE_FIRST" = "debug" ]; then fi elif [ "$EE_FIRST" = "update" ]; then ee_lib_echo "Please set following alias in your .bashrc" - echo "alias eeupdate=\"wget -qO /tmp/eeupdate https://raw.githubusercontent.com/rtCamp/easyengine/refactor/bin/eeupdate && sudo bash /tmp/eeupdate\"" | tee -ai ~/.bashrc - alias eeupdate="wget -qO /tmp/eeupdate https://raw.githubusercontent.com/rtCamp/easyengine/refactor/bin/eeupdate && sudo bash /tmp/eeupdate" + alias | grep eeupdate &>> $EE_COMMAND_LOG + if [ $? -ne 0 ]; then + echo "alias eeupdate=\"wget -qO /tmp/eeupdate https://raw.githubusercontent.com/rtCamp/easyengine/refactor/bin/eeupdate && sudo bash /tmp/eeupdate\"" + fi + + else ee_lib_echo "EasyEngine (ee) commands:" ee_lib_echo_escape "\tversion\tDisplay EasyEngine (ee) version" diff --git a/bin/install.sh b/bin/install similarity index 100% rename from bin/install.sh rename to bin/install diff --git a/bin/eeupdate b/bin/update similarity index 100% rename from bin/eeupdate rename to bin/update