1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-08-28 15:26:18 +03:00
Files
telegram-bot/bin/install_git_hooks
Max Melentiev 57b17f068c Update rubopcop (#227)
* Update rubopcop [WIP]

* Further rubocop fixes

* Fix rubocop-rails cops

* Fix spec

* Disable rubocop suggestions

* Run rubocop in github actions rather than in codeclimate
2023-12-30 15:20:27 +00:00

10 строки
249 B
Ruby
Исполняемый файл

#!/usr/bin/env ruby
# frozen_string_literal: true
root = File.expand_path('..', __dir__)
hooks_dir = "#{root}/bin/git-hooks"
`ls -1 #{hooks_dir}`.each_line.map(&:strip).each do |file|
`ln -sf #{hooks_dir}/#{file} #{root}/.git/hooks/#{file}`
end