Skip to content

Commit

Permalink
use the last path token as destination for install (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine authored Oct 22, 2023
1 parent 6273a2b commit 273502f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nupm/install.nu
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def install-modules [
]: list<path> -> nothing {
each {|module|
let src_path = $pkg_dir | path join $module
let dst_path = $modules_dir | path join $module
let dst_path = $modules_dir | path join ($module | path split | last)

if not ($src_path | path exists) {
throw-error "module_not_found" $"Module ($src_path) does not exist"
Expand Down

0 comments on commit 273502f

Please sign in to comment.