about summary refs log tree commit diff
path: root/xrs
diff options
context:
space:
mode:
Diffstat (limited to 'xrs')
-rwxr-xr-xxrs2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrs b/xrs
index 348903d..c628a43 100755
--- a/xrs
+++ b/xrs
@@ -2,7 +2,7 @@
 # xrs PATTERN - like xbps-query -Rs, but take cwd repo into account
 
 BRANCH=$(git symbolic-ref -q --short HEAD 2>/dev/null)
-XBPS_DISTDIR="$(xdistdir)" || XBPS_DISTDIR=.
+XBPS_DISTDIR="$(xdistdir 2>/dev/null)" || XBPS_DISTDIR=.
 ADDREPO="
 	--repository=$XBPS_DISTDIR/hostdir/binpkgs/$BRANCH
 	--repository=$XBPS_DISTDIR/hostdir/binpkgs/$BRANCH/nonfree