From ca3cf4f3537c588f6100fd817c3a25a84629ec1c Mon Sep 17 00:00:00 2001 From: Piraty Date: Wed, 26 Feb 2020 16:57:54 +0100 Subject: xgensum: default to /home/user1/src/void-packages/hostdir to not create hostdirs in package dirs Signed-off-by: Piraty --- xgensum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xgensum b/xgensum index 00a9b14..72963c6 100755 --- a/xgensum +++ b/xgensum @@ -17,10 +17,10 @@ case "$1" in -H*) FLAG_h=$2; shift; shift esac -: ${FLAG_h:=hostdir} - XBPS_DISTDIR=$(xdistdir) || exit 1 +: ${FLAG_h:=$XBPS_DISTDIR/hostdir} + if [ -f "$1" ]; then template="$1" elif [ -f "$1/template" ]; then -- cgit 1.4.1