xbps-src: replace dirname(1) usage

This commit is contained in:
maxice8 2019-04-14 09:04:06 -03:00 committed by maxice8
parent 9c39291c28
commit fa40215823
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ if [ -n "$IN_CHROOT" ]; then
readonly XBPS_CONFIG_FILE=/etc/xbps/xbps-src.conf readonly XBPS_CONFIG_FILE=/etc/xbps/xbps-src.conf
readonly XBPS_DISTDIR=/void-packages readonly XBPS_DISTDIR=/void-packages
else else
_distdir="$(readlink -f $(dirname $0))" _distdir="$(readlink -f ${0%/*})"
if [ "${_distdir}" = "." ]; then if [ "${_distdir}" = "." ]; then
readonly XBPS_DISTDIR="$(pwd -P)" readonly XBPS_DISTDIR="$(pwd -P)"
else else