From bd4e11dad51e32859cca86cb290adf8811173bb7 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Thu, 17 Nov 2022 22:11:02 +0800 Subject: [PATCH] update.sh: alternative channel 'dev' --- .update.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.update.sh b/.update.sh index 0a6566b..45df9e2 100644 --- a/.update.sh +++ b/.update.sh @@ -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) ;; "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