fcl: Fail if unable to fetch config

This commit is contained in:
Lucas Wilson-Richter
2024-08-02 18:25:26 +10:00
parent 74693a6b3a
commit 8c8f123f5f

2
fcl
View File

@ -66,7 +66,7 @@ def destination_path(repo_str)
repo_elms = repo_str.split('/') repo_elms = repo_str.split('/')
repo = repo_elms.pop.sub(/\.git$/, '') repo = repo_elms.pop.sub(/\.git$/, '')
org = repo_elms.pop || Config['FCL_DEFAULT_ORG'] org = repo_elms.pop || Config.fetch('FCL_DEFAULT_ORG')
forge = repo_elms.pop || 'github.com' forge = repo_elms.pop || 'github.com'
File.join(forge, org, repo) File.join(forge, org, repo)