about summary refs log tree commit diff
path: root/xgensum
diff options
context:
space:
mode:
authorDoan Tran Cong Danh <congdanhqx@gmail.com>2019-07-10 15:19:09 +0700
committerLeah Neukirchen <leah@vuxu.org>2019-07-14 15:08:21 +0200
commit9af328f6b9e37effcaf08b52e41cf6c599d57c7e (patch)
tree10bc70bf4449b9d49de6b9bcf6cf96b2a9c8b759 /xgensum
parent08b1152c6a7ad1e9a665516a083b25d0461c4e7e (diff)
downloadxtools-9af328f6b9e37effcaf08b52e41cf6c599d57c7e.tar.gz
xtools-9af328f6b9e37effcaf08b52e41cf6c599d57c7e.tar.xz
xtools-9af328f6b9e37effcaf08b52e41cf6c599d57c7e.zip
xgensum: exit early when xdistdir is failed
Diffstat (limited to 'xgensum')
-rwxr-xr-xxgensum2
1 files changed, 1 insertions, 1 deletions
diff --git a/xgensum b/xgensum
index 81f112e..2047551 100755
--- a/xgensum
+++ b/xgensum
@@ -13,7 +13,7 @@ case "$1" in
 	-i*) FLAG_i=$1; shift
 esac
 
-XBPS_DISTDIR=$(xdistdir)
+XBPS_DISTDIR=$(xdistdir) || exit 1
 
 if [ -f "$1" ]; then
 	template="$1"