瀏覽代碼

Use case insensitive git repo check

bryan 5 天之前
父節點
當前提交
3019cfad12
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -1628,7 +1628,7 @@ update() {
 
   # Check if we're in a git directory and if it's the installJRMC repository
   if git -C "$SCRIPT_DIR" rev-parse --is-inside-work-tree &>/dev/null \
-  && [[ "$(git -C "$SCRIPT_DIR" config --get remote.origin.url)" == *"installJRMC"* ]]; then
+  && [[ "$(git -C "$SCRIPT_DIR" config --get remote.origin.url)" =~ installJRMC|installjrmc ]]; then
 
     # Get the current commit hash
     local before_pull_hash after_pull_hash