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")