소스 검색

don't install jj via brew if it's here

raylu 1 개월 전
부모
커밋
1e2eb35ba8
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      install_extras.py

+ 4 - 4
install_extras.py

@@ -241,6 +241,10 @@ def git_whence():
 	os.chmod(CURRENT_DIR / 'git-whence', 0o755)
 
 def jujutsu():
+	if (CURRENT_DIR / 'jj').exists():
+		print_gray('jj already downloaded')
+		return
+
 	if platform.system() == 'Darwin':
 		print('$ brew install jj')
 		subprocess.run(['brew', 'install', 'jj'], check=True)
@@ -248,10 +252,6 @@ def jujutsu():
 	else:
 		assert platform.system() == 'Linux'
 
-	if (CURRENT_DIR / 'jj').exists():
-		print_gray('jj already downloaded')
-		return
-
 	client = httpx.Client()
 	latest = gh_latest_version(client, 'jj-vcs', 'jj')
 	version = latest['name']