1
0

update make package

This commit is contained in:
2024-10-30 14:59:11 +08:00
parent 6a48f1182f
commit 109c8ad68a
2 changed files with 9 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ new_args=()
be_args=()
# Traverse all parameters
for arg in "$@"; do
if [[ "$arg" == "deb" || "$arg" == "badeb" || "$arg" == "rpm" ]]; then
if [[ "$arg" == "deb" || "$arg" == "rpm" ]]; then
pkgtype=$arg
be_args+=("$arg")
else
@@ -49,6 +49,10 @@ while getopts "m:r:d" option; do
d)
be_args+=("-d")
;;
c)
pkgtype="badeb"
be_args+=("$pkgtype")
;;
\?)
echo "Invalid option: -$OPTARG" >&2
usage