summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-08-28 18:36:54 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-08-29 13:58:50 +0200
commit5f8458f1977580f205b180b51a7234f590e4dcd5 (patch)
tree5f9ed4b1c1797e96ee8aa54f618d2a3d9c6a8dad
parent50c311c2618305573e043124e95e966fb6df783d (diff)
downloaddevtools-5f8458f1977580f205b180b51a7234f590e4dcd5.tar.gz
devtools-5f8458f1977580f205b180b51a7234f590e4dcd5.tar.xz
commitpkg: Avoid unnecessary use of basename(1)
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
-rwxr-xr-xcommitpkg2
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'