upd: avoid unassigned DOCS_DIR

This commit is contained in:
PowerUser64 2022-11-06 01:52:10 -08:00
parent beceb0b9c8
commit 4e560fd5a1

View file

@ -26,7 +26,7 @@ g() { git -C "$REPO" "$@"; }
REPO_ABBR='echo ${REPO/"$HOME"/"~"}'
# `git pull` everything mentioned in the REPOS_TO_UPDATE variable
IFS=: read -ra REPOS_TO_UPDATE_ARR <<< "${REPOS_TO_UPDATE:-}:$DOCS_DIR:$HOME/bin"
IFS=: read -ra REPOS_TO_UPDATE_ARR <<< "${REPOS_TO_UPDATE:-}:${DOCS_DIR:-}:$HOME/bin"
for REPO in "${REPOS_TO_UPDATE_ARR[@]}"; do
if [ -n "$REPO" ]; then
if g rev-parse > /dev/null 2>&1; then