mirror of
https://github.com/byReqz/conn.git
synced 2024-11-22 09:01:15 +00:00
fix error with -n
This commit is contained in:
parent
def8538bac
commit
97db5c1fb9
3
conn.sh
3
conn.sh
@ -56,14 +56,13 @@ function run_update {
|
|||||||
|
|
||||||
function prepare {
|
function prepare {
|
||||||
#check_update
|
#check_update
|
||||||
get_args $@
|
get_args "$@"
|
||||||
set_argvars $args
|
set_argvars $args
|
||||||
validate $input
|
validate $input
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_args {
|
function get_args {
|
||||||
input=$(echo " $@")
|
input=$(echo " $@")
|
||||||
echo $input
|
|
||||||
args=$(echo "$input" | grep -o -e "-h" -e "--help" -e "-6" -e "--force-ipv6" -e "-4" -e "--force-ipv4" -e "-y" -e "--yes" -e "-n" -e "--no" -e "-w" -e "--wait" -e "-u" -e "--update" -e "-f" -e "--fast" -e "-s" -e "--simple" | xargs)
|
args=$(echo "$input" | grep -o -e "-h" -e "--help" -e "-6" -e "--force-ipv6" -e "-4" -e "--force-ipv4" -e "-y" -e "--yes" -e "-n" -e "--no" -e "-w" -e "--wait" -e "-u" -e "--update" -e "-f" -e "--fast" -e "-s" -e "--simple" | xargs)
|
||||||
for arg in $args; do
|
for arg in $args; do
|
||||||
input=$(echo "$input" | sed "s/$arg//g")
|
input=$(echo "$input" | sed "s/$arg//g")
|
||||||
|
Loading…
Reference in New Issue
Block a user