mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-30 02:50:29 +08:00
update.sh improve
This commit is contained in:
parent
5bd6d9f822
commit
685da1d1e9
@ -26,7 +26,6 @@ if [[ "$(git rev-parse HEAD)" == "$dfs_commit" ]]; then
|
|||||||
else
|
else
|
||||||
fmt_info "checking out to commit $dfs_commit ..."
|
fmt_info "checking out to commit $dfs_commit ..."
|
||||||
git -c advice.detachedHead=false checkout $dfs_commit
|
git -c advice.detachedHead=false checkout $dfs_commit
|
||||||
cp ./.update.sh ./update.sh
|
post_log "INFO" "$THIS_FILE" "will check out to commit $dfs_commit"
|
||||||
chmod +x ./update.sh
|
cp ./.update.sh ./update.sh && chmod +x ./update.sh && exit
|
||||||
post_log "INFO" "$THIS_FILE" "checked out to commit $dfs_commit"
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user