From f7b8befe1e1ae8709190e48edbcd8cce0e74ed95 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Mon, 6 Oct 2025 15:41:27 +0900 Subject: [PATCH] Set current working directory as top directory It is useful to set current directory as default top directory to commit generated contents in this repository. Signed-off-by: Kentaro Hayashi --- make-install-script.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/make-install-script.rb b/make-install-script.rb index 6809421..515d613 100644 --- a/make-install-script.rb +++ b/make-install-script.rb @@ -38,9 +38,8 @@ class String opt.on("-v", "--verify", "Enable verification mode") { options[:verify] = true } top_dir = opt.parse!(ARGV).first -unless File.exist?(top_dir) - puts "#{top_dir} not found" - exit 1 +unless top_dir + top_dir = File.dirname(File.expand_path(__FILE__)) end class FluentInstallScript