Fix: No hard coded data
This commit is contained in:
parent
5fd47b34b0
commit
165f9617e9
@ -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 (-d "/etc" && -d "/Users") { $OS='macosx'; $CR=''; }
|
||||||
elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
|
elsif ("$^O" =~ /cygwin/i || "$^O" =~ /win32/i) { $OS='windows'; $CR="\r"; }
|
||||||
if (! $OS) {
|
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 "Can't continue.\n";
|
||||||
print "makepack-dolibarrmodule.pl aborted.\n";
|
print "$PROG.$Extension aborted.\n";
|
||||||
sleep 2;
|
sleep 2;
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@ if ($OS =~ /windows/) {
|
|||||||
if (! $TEMP || ! -d $TEMP) {
|
if (! $TEMP || ! -d $TEMP) {
|
||||||
print "Error: A temporary directory can not be find.\n";
|
print "Error: A temporary directory can not be find.\n";
|
||||||
print "Check that TEMP or TMP environment variable is set correctly.\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;
|
sleep 2;
|
||||||
exit 2;
|
exit 2;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user