This commit is contained in:
hl 2024-11-18 06:12:10 +08:00
parent 6232d9e331
commit 3da5fca92f

View File

@ -195,7 +195,7 @@ usage(){
echo " string as name";
echo " -e <EXP> Expression for sed (only for '-d -')";
echo " -c <COMMAND> Command for reload";
echo " -q Quite";
echo " -v Verbose";
echo " -a <USER:PASS> Auth user[:pass]";
echo " -x <PROXY> Proxy [protocol://]host[:port]";
}
@ -213,10 +213,10 @@ PKG_NAME=
PKG_DIR=
SED_EXP=
CMD_RELOAD=
VERBOSE=true
VERBOSE=false
SET_AUTH=
SET_PROXY=
while getopts ":r:t:k:m:u:bp:n:fo:d:e:c:qa:x:" OPT; do
while getopts ":r:t:k:m:u:bp:n:fo:d:e:c:va:x:" OPT; do
case $OPT in
r)
REPO=$OPTARG;
@ -257,8 +257,8 @@ while getopts ":r:t:k:m:u:bp:n:fo:d:e:c:qa:x:" OPT; do
c)
CMD_RELOAD=$OPTARG;
;;
q)
VERBOSE=false;
v)
VERBOSE=true;
;;
a)
SET_AUTH="-u $OPTARG";