update.sh use beacon; ci test beacon

This commit is contained in:
Dict Xiong 2022-11-27 00:52:41 +08:00
parent 45d1d1de69
commit 1abc0ea646
2 changed files with 2 additions and 2 deletions

View File

@ -32,11 +32,10 @@ fi
# update
if [[ "$(git rev-parse HEAD)" == "$DFS_COMMIT" ]]; then
fmt_info "nothing to do"
post_log "INFO" "$THIS_FILE" "nothing to do"
else
fmt_info "checking out to commit $DFS_COMMIT ..."
if [[ -z "$DFS_DEV" ]]; then
post_log "INFO" "$THIS_FILE" "will check out to commit $DFS_COMMIT"
post_beacon "dfs-update"
git -c advice.detachedHead=false checkout $DFS_COMMIT
cp ./.update.sh ./update.sh && chmod +x ./update.sh && exit $DFS_UPDATED_RET
else

View File

@ -17,6 +17,7 @@ grep -q ".zshrc2" ~/.zshrc
# check scripts and functions
dfs version
dfs log 1
dfs beacon github-ci
z ~
test ~ -ef "$(pwd)"
dogo