From 5f8458f1977580f205b180b51a7234f590e4dcd5 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 28 Aug 2011 18:36:54 +0200 Subject: commitpkg: Avoid unnecessary use of basename(1) Signed-off-by: Lukas Fleischer Signed-off-by: Pierre Schmitz --- commitpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commitpkg b/commitpkg index 410bc88..2a732b5 100755 --- a/commitpkg +++ b/commitpkg @@ -42,7 +42,7 @@ if [ -r ~/.makepkg.conf ]; then . ~/.makepkg.conf fi -cmd=$(basename "$0") +cmd=${0##*/} if [ ! -f PKGBUILD ]; then abort 'No PKGBUILD file' -- cgit v1.2.3-24-g4f1b