From c35d8d1b8e9f6107f321cc586a271e79d4cf58f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 13 Mar 2016 12:48:08 +0100 Subject: [PATCH] Fix publish on foundation server --- build/makepack-dolibarr.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl index 58f1514b632..b8c4f2fb475 100755 --- a/build/makepack-dolibarr.pl +++ b/build/makepack-dolibarr.pl @@ -1159,10 +1159,13 @@ if ($nboftargetok) { if ($target eq 'SF') { $destFolder="$NEWPUBLISH/$filestoscan{$file}/".$MAJOR.'.'.$MINOR.'.'.$BUILD; } - elsif ($target eq 'ASSO' && $NEWPUBLISH =~ /stable/) { + elsif ($target eq 'ASSO' and $NEWPUBLISH =~ /stable/) { $destFolder="$NEWPUBLISH/$filestoscanstableasso{$file}"; } - else + elsif ($target eq 'ASSO' and $NEWPUBLISH !~ /stable/) { + $destFolder="$NEWPUBLISH"; + } + else # No more used { $dirnameonly=$file; $dirnameonly =~ s/.*\/([^\/]+)\/[^\/]+$/$1/;