update.sh: fetch will prune

This commit is contained in:
Dict Xiong 2022-11-24 20:58:10 +08:00
parent 56e2b217eb
commit dc92cd249b

View File

@ -9,7 +9,7 @@ DFS_UPDATE_CHANNEL=${DFS_UPDATE_CHANNEL:-"main"}
# fetch origin # fetch origin
cd $DOTFILES cd $DOTFILES
git fetch --all git fetch --all --prune
if [[ -n "$(git status -s)" ]]; then if [[ -n "$(git status -s)" ]]; then
fmt_error "directory not clean" fmt_error "directory not clean"
post_log "ERROR" "$THIS_FILE" "directory not clean" post_log "ERROR" "$THIS_FILE" "directory not clean"