Skip to content
Snippets Groups Projects
Commit e0dd3090 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Remove hardcoded strings

parent abec6349
No related branches found
No related tags found
No related merge requests found
......@@ -45,9 +45,9 @@ elsif ( "$^O" =~ /cygwin/i || "$^O" =~ /win32/i ) {
$CR = "\r";
}
if ( !$OS ) {
print "makepack-dolbarrlang.pl was not able to detect your OS.\n";
print "$PROG.$Extension was not able to detect your OS.\n";
print "Can't continue.\n";
print "makepack-dolibarrlang.pl aborted.\n";
print "$PROG.$Extension aborted.\n";
sleep 2;
exit 1;
}
......
......@@ -37,9 +37,9 @@ if ("$^O" =~ /linux/i || (-d "/etc" && -d "/var" && "$^O" !~ /cygwin/i)) { $OS='
elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; }
elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
if (! $OS) {
print "makepack-dolbarrmodule.pl was not able to detect your OS.\n";
print "$PROG.$Extension was not able to detect your OS.\n";
print "Can't continue.\n";
print "makepack-dolibarrmodule.pl aborted.\n";
print "$PROG.$Extension aborted.\n";
sleep 2;
exit 1;
}
......
......@@ -41,9 +41,9 @@ if ("$^O" =~ /linux/i || (-d "/etc" && -d "/var" && "$^O" !~ /cygwin/i)) { $OS='
elsif (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; }
elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
if (! $OS) {
print "makepack-dolbarrtheme.pl was not able to detect your OS.\n";
print "$PROG.$Extension was not able to detect your OS.\n";
print "Can't continue.\n";
print "makepack-dolibarrtheme.pl aborted.\n";
print "$PROG.$Extension aborted.\n";
sleep 2;
exit 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment