#!/bin/bash UPDATE_RCDB_SCRIPT=$(readlink -f "$0") UPDATE_RCDB_SCRIPT_PATH=$(dirname "$SCRIPT") echo $UPDATE_RCDB_SCRIPT_PATH GIT_COMMAND="git --git-dir=$UPDATE_RCDB_SCRIPT_PATH/github_rcdb/.git" echo "git as '$GIT_COMMAND'" $GIT_COMMAND pull origin master $GIT_COMMAND checkout