98_Installer: Windows path compatibility

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@19253 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2019-04-24 14:34:05 +00:00
parent 0d0e3a06e8
commit 8107d9c1b1

View File

@ -3,6 +3,7 @@
package main; package main;
use strict; use strict;
use warnings; use warnings;
use POSIX;
use FHEM::Meta; use FHEM::Meta;
sub Installer_Initialize($) { sub Installer_Initialize($) {
@ -449,7 +450,7 @@ m/^(?:@([\w-]+)\/)?(?:App::)?(cpan\-?outdated)(?:@([\d\.=<>]+|latest))?$/i,
); );
$hash->{".fhem"}{installer}{cmd} = $hash->{".fhem"}{installer}{cmd} =
'uninstallPerl ' . join( " ", @args ); 'uninstallPerl ' . join( " ", @args );
$ret = "Deinstallation started in background"; $ret = "Deinstallation started in background";
} }
# return Usage: # return Usage:
@ -5380,6 +5381,7 @@ sub __GetExtendedEnvPath {
foreach my $p ( reverse @binpath ) { foreach my $p ( reverse @binpath ) {
next unless ( $p && $p ne '' ); next unless ( $p && $p ne '' );
$p =~ s/\\/\\\/g;
unshift @path, $p unless ( grep ( /^$p$/, @path ) ); unshift @path, $p unless ( grep ( /^$p$/, @path ) );
} }
@ -5506,7 +5508,7 @@ sub __list_module {
"abstract": "Modul zum Update von FHEM, zur Installation von Drittanbieter FHEM Modulen und der Verwaltung von Systemvoraussetzungen" "abstract": "Modul zum Update von FHEM, zur Installation von Drittanbieter FHEM Modulen und der Verwaltung von Systemvoraussetzungen"
} }
}, },
"version": "v0.5.2", "version": "v0.5.3",
"release_status": "testing", "release_status": "testing",
"author": [ "author": [
"Julian Pawlowski <julian.pawlowski@gmail.com>" "Julian Pawlowski <julian.pawlowski@gmail.com>"