Skip certain sync operations while on sagev.space itself
This commit is contained in:
parent
b32cf97e95
commit
4af46ebe64
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue