Skip to content

Commit

Permalink
Update variables.sh: Create ALLSKY_USER_VARIABLES
Browse files Browse the repository at this point in the history
Set it to point to the uservariables.sh file if it exists, else set to "".
  • Loading branch information
EricClaeys authored Jan 15, 2025
1 parent ba67ed8 commit 733bd07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,12 @@ if [[ -z "${ALLSKY_VARIABLE_SET}" ]]; then
# If a user wants to define new variables or assign variables differently,
# then load their file if it exists.
# shellcheck disable=SC1090,SC1091
[[ -f ${ALLSKY_CONFIG}/uservariables.sh ]] && source "${ALLSKY_CONFIG}/uservariables.sh"
ALLSKY_USER_VARIABLES="${ALLSKY_CONFIG}/uservariables.sh"
if [[ -f ${ALLSKY_USER_VARIABLES} ]]; then
source "${ALLSKY_USER_VARIABLES}"
else
ALLSKY_USER_VARIABLES=""
fi
fi

return 0

0 comments on commit 733bd07

Please sign in to comment.