diff --git a/cmd b/cmd index a7d1737e..8bd384ea 100755 --- a/cmd +++ b/cmd @@ -273,6 +273,7 @@ if [ $# -gt 0 ]; then echo -e "$res" elif [[ "$1" == "update" ]]; then shift 1 + run_mysql backup git fetch --all git reset --hard origin/$(git branch | sed -n -e 's/^\* \(.*\)/\1/p') git pull