xbps-src: resolve XBPS_DISTDIR correctly with relative paths.
This commit is contained in:
parent
6c2cc1b706
commit
3b291a8b1d
@ -338,7 +338,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=/xbps-packages
|
readonly XBPS_DISTDIR=/xbps-packages
|
||||||
else
|
else
|
||||||
_distdir="$(dirname $0)"
|
_distdir="$(readlink -f $(dirname $0))"
|
||||||
if [ "${_distdir}" = "." ]; then
|
if [ "${_distdir}" = "." ]; then
|
||||||
readonly XBPS_DISTDIR="$(pwd -P)"
|
readonly XBPS_DISTDIR="$(pwd -P)"
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user