#!/bin/bash CHECK_RCDB_SCRIPT=$(readlink -f "$0") CHECK_RCDB_SCRIPT_PATH=$(dirname "$CHECK_RCDB_SCRIPT") echo $CHECK_RCDB_SCRIPT_PATH GIT_COMMAND="git --git-dir=$CHECK_RCDB_SCRIPT_PATH/github_rcdb/.git" echo "git as '$GIT_COMMAND'" export GIT_WORK_TREE=$CHECK_RCDB_SCRIPT_PATH/github_rcdb $GIT_COMMAND remote update && $GIT_COMMAND status -uno