diff --git a/functions b/functions index d41c0c5..757741f 100644 --- a/functions +++ b/functions @@ -19,11 +19,6 @@ udot() { echo -e "$info" echo -e "" - echo -e "Update submodules..." - git submodule init - git submodule update - echo -e "" - if [ -z "$status" ]; then echo -e "Local changes:" echo -e "$gstatus" @@ -41,6 +36,10 @@ udot() { cd $cwd fi echo -e "" + echo -e "Update submodules..." + git submodule init + git submodule update + echo -e "" } # will attach to existing tmux session, create new if one does not exist or just start bash if there is no tmux available.