From 685da1d1e96cb7fd002d8b463622cbd8dcf23512 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Thu, 1 Sep 2022 23:39:55 +0800 Subject: [PATCH] update.sh improve --- .update.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.update.sh b/.update.sh index 5ff9056..ad98d33 100644 --- a/.update.sh +++ b/.update.sh @@ -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