From fff303850e984cb28193f9c965db6790b110f02d Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Thu, 10 Oct 2024 16:14:57 -0400 Subject: [PATCH] Remove redundant getdot logic --- fake_home/.zshrc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/fake_home/.zshrc b/fake_home/.zshrc index 744ea78..645ce65 100644 --- a/fake_home/.zshrc +++ b/fake_home/.zshrc @@ -330,17 +330,9 @@ fi last_get_file="$HOME/.tmp/.$(whoami)-dotfiles-last-get" current_date="$(date '+%Y-%m-%d')" -LOGIN_SYNC_DATE="$HOME/.bin/.login-dot-sync" -touch $LOGIN_SYNC_DATE -login_sync_date="$(date '+%D')" -logged_date="$(cat "$LOGIN_SYNC_DATE")" +GETDOT_ARGS="--skip-dconf" -if [[ "$login_sync_date" == "$logged_date" ]]; then - GETDOT_ARGS="--skip-dconf" -else - RUN_GETDOT="true" GETDOT_ARGS="--skip-dconf" -fi if [[ "$RUN_GETDOT" == "true" ]] || (test -d "$DOT_DIR" && [[ "$current_date" != "$(cat "$last_get_file")" ]] &> /dev/null); then echo "$current_date" > "$last_get_file" date >> "$HOME/.tmp/getdot-log"