From 426f6541e67d17a4b05efd585ded2a90e00e180a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 7 Feb 2016 01:05:53 +0100 Subject: [PATCH] Fix: can publish on foundation ref storage --- build/makepack-dolibarr.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl index 42091d0cda4..c719c56ec25 100755 --- a/build/makepack-dolibarr.pl +++ b/build/makepack-dolibarr.pl @@ -1154,8 +1154,10 @@ if ($nboftargetok) { } else { - $destFolder="$NEWPUBLISH"; - print "Publish file ".$file." to $NEWPUBLISH\n"; + $filenameonly=$file; + $filenameonly =~ s{.*/}{}; # removes path + $destFolder="$NEWPUBLISH/$filenameonly"; + print "Publish file ".$file." to $NEWPUBLISH/".$filenameonly."\n"; } # mkdir