[arch-projects] [devtools] [PATCH 4/4] commitpkg: Avoid unnecessary use of basename(1)
Lukas Fleischer
archlinux at cryptocrack.de
Sun Aug 28 12:36:54 EDT 2011
Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
commitpkg | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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'
--
1.7.6.1
More information about the arch-projects
mailing list