From 38e5b773ced391b90419cc3b5d5a72742a8cae6f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 7 Feb 2016 01:11:12 +0100 Subject: [PATCH] Fix: can publish on foundation ref storage --- build/makepack-dolibarr.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/makepack-dolibarr.pl b/build/makepack-dolibarr.pl index c719c56ec25..1d6542eafc9 100755 --- a/build/makepack-dolibarr.pl +++ b/build/makepack-dolibarr.pl @@ -1155,7 +1155,7 @@ if ($nboftargetok) { else { $filenameonly=$file; - $filenameonly =~ s{.*/}{}; # removes path + $filenameonly =~ s/.*\/([^\/]+\/[^\/]+)$/$1/; # removes path $destFolder="$NEWPUBLISH/$filenameonly"; print "Publish file ".$file." to $NEWPUBLISH/".$filenameonly."\n"; }