summaryrefslogtreecommitdiff
path: root/scripts/security-harness
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/security-harness')
-rwxr-xr-xscripts/security-harness10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/security-harness b/scripts/security-harness
index 8369cf06223..51eaefe2003 100755
--- a/scripts/security-harness
+++ b/scripts/security-harness
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
-require 'digest'
-require 'fileutils'
+require "digest"
+require "fileutils"
-harness_path = File.expand_path('../.git/security_harness', __dir__)
+harness_path = File.expand_path("../.git/security_harness", __dir__)
hook_path = File.expand_path("../.git/hooks/pre-push", __dir__)
if File.exist?(hook_path)
@@ -18,11 +18,11 @@ if File.exist?(hook_path)
exit 1
end
else
- File.open(hook_path, 'w') do |file|
+ File.open(hook_path, "w") do |file|
IO.copy_stream(DATA, file)
end
- File.chmod(0755, hook_path)
+ File.chmod(0o755, hook_path)
end
# Toggle the harness on or off