From a0177ad890fc8459b5245d4cf9332b1b3470e9be Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 4 Jun 2020 00:20:21 +0200 Subject: Commit hash is settable on the command line --- build.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.rb b/build.rb index 41b4388..6d74536 100755 --- a/build.rb +++ b/build.rb @@ -45,6 +45,9 @@ OptionParser.new do |opts| opts.on("-s", "--size SIZE", "Size to resize images to") do |size| options[:size] = size end + opts.on("-c", "--commit HASH", "Commit to display on website") do |hash| + options[:commit] = hash + end end.parse! options[:path] = "build" unless options[:path] -- cgit v1.2.3