mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Force removal when replacing old grammar modules
This commit is contained in:
@@ -117,7 +117,7 @@ begin
|
|||||||
|
|
||||||
if $repo_old
|
if $repo_old
|
||||||
log "Deregistering: #{$repo_old}"
|
log "Deregistering: #{$repo_old}"
|
||||||
command('git', 'submodule', 'deinit', $repo_old)
|
command('git', 'submodule', 'deinit', '-f', $repo_old)
|
||||||
command('git', 'rm', '-rf', $repo_old)
|
command('git', 'rm', '-rf', $repo_old)
|
||||||
command('script/grammar-compiler', 'update', '-f')
|
command('script/grammar-compiler', 'update', '-f')
|
||||||
end
|
end
|
||||||
@@ -130,7 +130,8 @@ begin
|
|||||||
if $repo_old
|
if $repo_old
|
||||||
command('script/licensed')
|
command('script/licensed')
|
||||||
else
|
else
|
||||||
command('script/licensed', '--module', $repo_new)
|
repo_abs = File.absolute_path($repo_new)
|
||||||
|
command('script/licensed', '--module', repo_abs)
|
||||||
end
|
end
|
||||||
|
|
||||||
log "Updating grammar documentation in vendor/README.md"
|
log "Updating grammar documentation in vendor/README.md"
|
||||||
|
|||||||
Reference in New Issue
Block a user