Merge branch 'main' of https://git.sagev.space/sage/dotfiles
This commit is contained in:
commit
e608cda593
|
@ -334,17 +334,9 @@ fi
|
||||||
|
|
||||||
last_get_file="$HOME/.tmp/.$(whoami)-dotfiles-last-get"
|
last_get_file="$HOME/.tmp/.$(whoami)-dotfiles-last-get"
|
||||||
current_date="$(date '+%Y-%m-%d')"
|
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")"
|
|
||||||
|
|
||||||
if [[ "$login_sync_date" == "$logged_date" ]]; then
|
|
||||||
GETDOT_ARGS="--skip-dconf"
|
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
|
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"
|
||||||
date >> "$HOME/.tmp/getdot-log"
|
date >> "$HOME/.tmp/getdot-log"
|
||||||
|
|
Loading…
Reference in New Issue