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
@removedirs = ();
@removefiletable = ();
$plat = $^O;
if ( $plat =~ /cygwin/i )
if ( $^O =~ /cygwin/i )
{
$zippath = "zip"; # Has to be in the path: /usr/bin/zip
$separator = "/";
......
......@@ -207,7 +207,7 @@ sub create_profiles
# Sorting the array @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);
}
......
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