summaryrefslogtreecommitdiff
path: root/scripts/docker/files/bin/util.sh
blob: 77287d0d9620eb1e199b93e6c768b7f7de677cc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

configure_soledad_repos() {
  if [ ! -z "${SOLEDAD_REMOTE}" ]; then
    git -C ${REPO} remote set-url origin ${SOLEDAD_REMOTE}
    git -C ${REPO} fetch origin
  fi

  if [ ! -z "${SOLEDAD_BRANCH}" ]; then
    git -C ${REPO} checkout ${SOLEDAD_BRANCH}
  fi
}