From 39f77e4a47d90db1c8d8c940d06cb681e4a4a37f Mon Sep 17 00:00:00 2001
From: Mar Alegre <mar@mar.alemor.org>
Date: Mon, 1 Feb 2021 19:50:38 -0500
Subject: [PATCH] bugfix to pdm-build

---
 .install/bin/pdm-build | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/.install/bin/pdm-build b/.install/bin/pdm-build
index a41dc0f..24cfa5b 100755
--- a/.install/bin/pdm-build
+++ b/.install/bin/pdm-build
@@ -52,22 +52,19 @@ while getopts ':sdt:h' arg; do
     esac
 done
 
-echo "${opt_tags[*]}"
-exit 0
-
 # Handle non-option arguments
 if [[ $# -gt 2 ]]; then
     badarg "Too many arguments"
 fi
 
-if [[ -n $1 ]]; then
+if [[ $# -ge 1 ]]; then
     directory="$1"
 else
     directory=$(pwd)
 fi
 
 
-if [[ -n $2 ]]; then
+if [[ $# -ge 2 ]]; then
     name="$2"
 else
     name=$(basename "$directory")