Skip certain sync operations while on sagev.space itself

This commit is contained in:
Sage Vaillancourt 2024-08-30 14:14:29 -04:00
parent b32cf97e95
commit 4af46ebe64
1 changed files with 8 additions and 0 deletions

View File

@ -257,6 +257,10 @@ function _pushdot {
git push -u origin main
fi
fi
if [[ "$(hostname)" != "sage-bigboy" ]]; then
cd - > /dev/null
return $res
fi
push-extensions | tee -a "$SYNC_LOCK_FILE"
sync-history | tee -a "$SYNC_LOCK_FILE"
push-dconf | tee -a "$SYNC_LOCK_FILE"
@ -297,6 +301,10 @@ function _getdot {
fi
cd "$DOT_DIR" || return 1
git pull && ./copy.sh | tee -a "$SYNC_LOCK_FILE"
if [[ "$(hostname)" != "sage-bigboy" ]]; then
cd - > /dev/null
return
fi
sync-history | tee -a "$SYNC_LOCK_FILE"
load-extensions | tee -a "$SYNC_LOCK_FILE"