3 if [ -z "${DOTFILES_DIR}" ]; then
4 echo 'DOTFILES_DIR is not set. Bailing out.'
8 cd "${DOTFILES_DIR}" || exit 1
10 # Update once a week from our remote repository. Mark updates by
12 UPDATE_FILE="updated.$(date +%U)"
14 if [ ! -e "${UPDATE_FILE}" ]; then
15 echo "update dotfiles"
16 rm -f updated.* 2>/dev/null
17 touch "${UPDATE_FILE}"
18 ./bin/fetch.sh || exit 1
19 ./bin/patch.sh || exit 1
20 ./bin/link.sh || exit 1
21 echo "dotfiles updated"