mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-02 05:10:30 +08:00
update.sh: fetch will prune
This commit is contained in:
parent
56e2b217eb
commit
dc92cd249b
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user