mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-25 00:47:06 +08:00
update.sh use beacon; ci test beacon
This commit is contained in:
parent
45d1d1de69
commit
1abc0ea646
|
@ -32,11 +32,10 @@ fi
|
||||||
# update
|
# update
|
||||||
if [[ "$(git rev-parse HEAD)" == "$DFS_COMMIT" ]]; then
|
if [[ "$(git rev-parse HEAD)" == "$DFS_COMMIT" ]]; then
|
||||||
fmt_info "nothing to do"
|
fmt_info "nothing to do"
|
||||||
post_log "INFO" "$THIS_FILE" "nothing to do"
|
|
||||||
else
|
else
|
||||||
fmt_info "checking out to commit $DFS_COMMIT ..."
|
fmt_info "checking out to commit $DFS_COMMIT ..."
|
||||||
if [[ -z "$DFS_DEV" ]]; then
|
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
|
git -c advice.detachedHead=false checkout $DFS_COMMIT
|
||||||
cp ./.update.sh ./update.sh && chmod +x ./update.sh && exit $DFS_UPDATED_RET
|
cp ./.update.sh ./update.sh && chmod +x ./update.sh && exit $DFS_UPDATED_RET
|
||||||
else
|
else
|
||||||
|
|
|
@ -17,6 +17,7 @@ grep -q ".zshrc2" ~/.zshrc
|
||||||
# check scripts and functions
|
# check scripts and functions
|
||||||
dfs version
|
dfs version
|
||||||
dfs log 1
|
dfs log 1
|
||||||
|
dfs beacon github-ci
|
||||||
z ~
|
z ~
|
||||||
test ~ -ef "$(pwd)"
|
test ~ -ef "$(pwd)"
|
||||||
dogo
|
dogo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user