fix update & docker notify (#16)

* update.sh improve
* docker notify
This commit is contained in:
2022-10-27 01:16:45 +08:00
committed by GitHub
parent 5bd6d9f822
commit 83695d48fb
2 changed files with 10 additions and 4 deletions

View File

@@ -26,7 +26,6 @@ if [[ "$(git rev-parse HEAD)" == "$dfs_commit" ]]; then
else
fmt_info "checking out to commit $dfs_commit ..."
git -c advice.detachedHead=false checkout $dfs_commit
cp ./.update.sh ./update.sh
chmod +x ./update.sh
post_log "INFO" "$THIS_FILE" "checked out to commit $dfs_commit"
post_log "INFO" "$THIS_FILE" "will check out to commit $dfs_commit"
cp ./.update.sh ./update.sh && chmod +x ./update.sh && exit
fi