mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-08 10:00:31 +08:00
set DFS_DEV=1 to prevent update
This commit is contained in:
parent
1ce4aab8a7
commit
12e5778290
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rev=`git rev-parse HEAD`
|
rev=`git rev-parse HEAD`
|
||||||
pwd
|
pwd
|
||||||
export DFS_NO_COMPILE=1 DFS_NO_UPDATE=1
|
export DFS_NO_COMPILE=1 DFS_DEV=1
|
||||||
./install.sh
|
./install.sh
|
||||||
test `git rev-parse HEAD` = "$rev"
|
test `git rev-parse HEAD` = "$rev"
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rev=`git rev-parse HEAD`
|
rev=`git rev-parse HEAD`
|
||||||
pwd
|
pwd
|
||||||
export DFS_NO_COMPILE=1 DFS_NO_UPDATE=1
|
export DFS_NO_COMPILE=1 DFS_DEV=1
|
||||||
./install.sh
|
./install.sh
|
||||||
test `git rev-parse HEAD` = "$rev"
|
test `git rev-parse HEAD` = "$rev"
|
||||||
|
|
||||||
|
@ -25,7 +25,11 @@ if [[ "$(git rev-parse HEAD)" == "$dfs_commit" ]]; then
|
|||||||
post_log "INFO" "$THIS_FILE" "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
|
||||||
git -c advice.detachedHead=false checkout $dfs_commit
|
git -c advice.detachedHead=false checkout $dfs_commit
|
||||||
|
else
|
||||||
|
fmt_warning "won't really checkout in dev mode"
|
||||||
|
done
|
||||||
post_log "INFO" "$THIS_FILE" "will check 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
|
cp ./.update.sh ./update.sh && chmod +x ./update.sh && exit
|
||||||
fi
|
fi
|
||||||
|
@ -142,10 +142,8 @@ install_update(){
|
|||||||
fmt_note "installing update.sh ..."
|
fmt_note "installing update.sh ..."
|
||||||
cp "${DOTFILES}/.update.sh" "${DOTFILES}/update.sh"
|
cp "${DOTFILES}/.update.sh" "${DOTFILES}/update.sh"
|
||||||
chmod +x "${DOTFILES}/update.sh"
|
chmod +x "${DOTFILES}/update.sh"
|
||||||
if [[ -z "$DFS_NO_UPDATE" ]]; then
|
|
||||||
fmt_note "running update.sh ..."
|
fmt_note "running update.sh ..."
|
||||||
${DOTFILES}/update.sh
|
${DOTFILES}/update.sh
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uninstall_update(){
|
uninstall_update(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user