From 4e560fd5a1795b823fb0111f3e7f812ae1061350 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Sun, 6 Nov 2022 01:52:10 -0800 Subject: [PATCH] upd: avoid unassigned DOCS_DIR --- .config/shell/bin/upd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/shell/bin/upd b/.config/shell/bin/upd index a927d19..439c3b9 100755 --- a/.config/shell/bin/upd +++ b/.config/shell/bin/upd @@ -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