mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
changed arguments order
This commit is contained in:
parent
05ba0965e0
commit
120ee22972
1 changed files with 5 additions and 4 deletions
|
@ -6,8 +6,9 @@
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Argument defenition
|
# Argument defenition
|
||||||
user=$1
|
ip=$1
|
||||||
ip=$2
|
user=$2
|
||||||
|
|
||||||
|
|
||||||
# Importing variables
|
# Importing variables
|
||||||
source $VESTA/conf/vars.conf
|
source $VESTA/conf/vars.conf
|
||||||
|
@ -21,10 +22,10 @@ source $V_FUNC/ip.func
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Checking arg number
|
# Checking arg number
|
||||||
check_args '2' "$#" 'user ip'
|
check_args '2' "$#" 'ip user'
|
||||||
|
|
||||||
# Checking argument format
|
# Checking argument format
|
||||||
format_validation 'user' 'ip'
|
format_validation 'ip' 'user'
|
||||||
|
|
||||||
# Checking user
|
# Checking user
|
||||||
is_user_valid
|
is_user_valid
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue