We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d624dcc commit 4e2a328Copy full SHA for 4e2a328
1 file changed
lib/octocatalog-diff/catalog-util/bootstrap.rb
@@ -116,7 +116,11 @@ def self.git_checkout(logger, dir_opts)
116
# @param opts [Hash] Directory options
117
def self.install_bootstrap_script(logger, opts)
118
# Verify that bootstrap file exists
119
- src = File.join(opts[:basedir], opts[:bootstrap_script])
+ src = if opts[:bootstrap_script].start_with? '/'
120
+ opts[:bootstrap_script]
121
+ else
122
+ File.join(opts[:basedir], opts[:bootstrap_script])
123
+ end
124
raise BootstrapError, "Bootstrap script #{src} does not exist" unless File.file?(src)
125
126
logger.debug('Begin install bootstrap script in target directory')
0 commit comments