Fix: No hard coded data

This commit is contained in:
Laurent Destailleur 2014-01-02 10:55:11 +01:00
parent 5fd47b34b0
commit 165f9617e9

View File

@ -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;
}
@ -59,7 +59,7 @@ if ($OS =~ /windows/) {
if (! $TEMP || ! -d $TEMP) {
print "Error: A temporary directory can not be find.\n";
print "Check that TEMP or TMP environment variable is set correctly.\n";
print "makepack-dolibarrmodule.pl aborted.\n";
print "$PROG.$Extension aborted.\n";
sleep 2;
exit 2;
}