Commit 77065764 authored by Jack Danger's avatar Jack Danger Committed by Kazushi (Jam) Marukawa

Fixing nil error with missing `target_dir`

Prior to this change when `@pkg.is_fake?` evaluated to true the code would execute `post_install` with a `nil` `target_dir` variable, causing a nil error on `Dir.chdir(nil)`
parent 386c6060
......@@ -615,11 +615,11 @@ def install
# install filelist, dlist and binary files
puts "Installing..."
install_package dest_dir
end
# perform post-install process
post_install target_dir
# perform post-install process
post_install target_dir
end
#add to installed packages
@device[:installed_packages].push(name: @pkg.name, version: @pkg.version)
File.open(CREW_CONFIG_PATH + 'device.json', 'w') do |file|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment