#!/usr/bin/env bash CUR_DIR=$(cd $(dirname $0); pwd) function _log() { local timestamp=$(date +'%Y-%m-%d %H:%M.%S') local SET_COLOR='\033[32m' local CLEAR_COLOR='\033[0m' printf "$SET_COLOR%s \$$CLEAR_COLOR %s\n" "$timestamp" "$*" } # checkout function checkout() { source ${CUR_DIR}/git-pull-target source ${CUR_DIR}/git-pull-source source ${CUR_DIR}/git-pull-submodules } checkout