Don't recurse forever :)

This commit is contained in:
Sage Vaillancourt 2024-10-10 16:09:48 -04:00
parent 828a93e54c
commit 260e3a4749
1 changed files with 2 additions and 2 deletions

View File

@ -337,9 +337,9 @@ login_sync_date="$(date '+%D')"
logged_date="$(cat "$LOGIN_SYNC_DATE")" logged_date="$(cat "$LOGIN_SYNC_DATE")"
if [[ "$login_sync_date" == "$logged_date" ]]; then if [[ "$login_sync_date" == "$logged_date" ]]; then
GETDOT_ARGS="--skip-dconf" source "$HOME/.zshrc" GETDOT_ARGS="--skip-dconf"
else else
RUN_GETDOT="true" GETDOT_ARGS="--skip-dconf" source "$HOME/.zshrc" RUN_GETDOT="true" GETDOT_ARGS="--skip-dconf"
fi fi
if [[ "$RUN_GETDOT" == "true" ]] || (test -d "$DOT_DIR" && [[ "$current_date" != "$(cat "$last_get_file")" ]] &> /dev/null); then if [[ "$RUN_GETDOT" == "true" ]] || (test -d "$DOT_DIR" && [[ "$current_date" != "$(cat "$last_get_file")" ]] &> /dev/null); then
echo "$current_date" > "$last_get_file" echo "$current_date" > "$last_get_file"