Skip to content

Commit

Permalink
Make CUR uninstall .bat wrapper scripts (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
cygx authored and ugexe committed Feb 13, 2019
1 parent 9d6e508 commit 121ca5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/CompUnit/Repository/Installation.pm6
Expand Up @@ -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
Expand Down

0 comments on commit 121ca5f

Please sign in to comment.