From fa40215823f3bd0dd74ff27a316af69326d70996 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 14 Apr 2019 09:04:06 -0300 Subject: [PATCH] xbps-src: replace dirname(1) usage --- xbps-src | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbps-src b/xbps-src index 375cf3f9e81..37c0506fc6f 100755 --- a/xbps-src +++ b/xbps-src @@ -491,7 +491,7 @@ if [ -n "$IN_CHROOT" ]; then readonly XBPS_CONFIG_FILE=/etc/xbps/xbps-src.conf readonly XBPS_DISTDIR=/void-packages else - _distdir="$(readlink -f $(dirname $0))" + _distdir="$(readlink -f ${0%/*})" if [ "${_distdir}" = "." ]; then readonly XBPS_DISTDIR="$(pwd -P)" else