mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-11-23 20:38:16 +08:00
[dev] dfs config; trash (#30)
* install.sh: fix install dep * update.sh: alternative channel 'dev' * zshrc: dfs config * lint: remove endline \ * if trash, disable rm * update.sh: fallback to main if dev not exists * bug fix * to-install.sh; v2ray -> v2fly * gitconfig: quotepath=false * git log using iso date; dfs vversion
This commit is contained in:
@@ -19,6 +19,7 @@ fi
|
||||
# get the specified commit id
|
||||
case $DFS_UPDATE_CHANNEL in
|
||||
"main" ) DFS_COMMIT=$(curl -fsSL https://api.beardic.cn/get-var/dfs-commit-id) ;;
|
||||
"dev" ) DFS_COMMIT=$(git rev-parse origin/dev 2> /dev/null) || DFS_COMMIT=$(git rev-parse origin/main) ;;
|
||||
"latest" ) DFS_COMMIT=$(git for-each-ref --sort=-committerdate refs/heads refs/remotes --format='%(objectname)' | head -n 1) ;;
|
||||
* ) fmt_fatal "invalid update channel: $DFS_UPDATE_CHANNEL" ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user