[X2Go-Commits] [buildscripts] 01/01: bin/create_package_descr: fix up "basename" call, use fileparse () instead of basename () and drop unneeded elements

git-admin at x2go.org git-admin at x2go.org
Sun Oct 30 04:31:27 CET 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit a300ac3fd64aafbd46b5b7db62d544ee7580620b
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun Oct 30 04:30:58 2016 +0100

    bin/create_package_descr: fix up "basename" call, use fileparse () instead of basename () and drop unneeded elements
---
 bin/create_package_descr |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/create_package_descr b/bin/create_package_descr
index a44d953..8edc40b 100755
--- a/bin/create_package_descr
+++ b/bin/create_package_descr
@@ -35,7 +35,7 @@ use File::Basename;
 use Cwd 'abs_path';
 
 my $script_path = abs_path ($0);
-$script_path = dirname (script_path);
+my (undef, $script_path, undef) = fileparse ($script_path);
 
 use lib "$script_path/../perl/modules";
 

--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list