master
#!/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