Skip to content
Permalink
Browse files

Make CUR uninstall .bat wrapper scripts (#2696)

  • Loading branch information...
cygx authored and ugexe committed Feb 13, 2019
1 parent 9d6e508 commit 121ca5fda71aceea3b2c4fa57947b04716b08e90
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/CompUnit/Repository/Installation.pm6
@@ -316,7 +316,7 @@ sub MAIN(:$name, :$auth, :$ver, *@, *%) {
when /^bin\/(.*)/ {
# wrappers are located in $bin-dir (only delete if no other versions use wrapper)
unless self.files($name-path, :name($dist.meta<name>)).elems {
unlink-if-exists( $bin-dir.add("$0$_") ) for '', '-m', '-j';
unlink-if-exists( $bin-dir.add("$0$_") ) for '', '-m', '-j', '.bat', '-m.bat', '-j.bat';
}

# original bin scripts are in $resources-dir

0 comments on commit 121ca5f

Please sign in to comment.
You can’t perform that action at this time.