Kaydet (Commit) bd52c601 authored tarafından Tim Retout's avatar Tim Retout

installer: Replace $installer::globals::plat

Change-Id: I81076008a619063acadc328a4ae8caf27eb8fe50
üst e0aa5e6f
...@@ -292,9 +292,7 @@ BEGIN ...@@ -292,9 +292,7 @@ BEGIN
@removedirs = (); @removedirs = ();
@removefiletable = (); @removefiletable = ();
$plat = $^O; if ( $^O =~ /cygwin/i )
if ( $plat =~ /cygwin/i )
{ {
$zippath = "zip"; # Has to be in the path: /usr/bin/zip $zippath = "zip"; # Has to be in the path: /usr/bin/zip
$separator = "/"; $separator = "/";
......
...@@ -207,7 +207,7 @@ sub create_profiles ...@@ -207,7 +207,7 @@ sub create_profiles
# Sorting the array @onefile # Sorting the array @onefile
my $onefileref = sorting_profile(\@onefile); my $onefileref = sorting_profile(\@onefile);
if ( $installer::globals::iswin && $installer::globals::plat =~ /cygwin/i) # Windows line ends only for Cygwin if ( $installer::globals::iswin && $^O =~ /cygwin/i) # Windows line ends only for Cygwin
{ {
include_windows_lineends($onefileref); include_windows_lineends($onefileref);
} }
......
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