mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -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
|
||||
user=$1
|
||||
ip=$2
|
||||
ip=$1
|
||||
user=$2
|
||||
|
||||
|
||||
# Importing variables
|
||||
source $VESTA/conf/vars.conf
|
||||
|
@ -21,10 +22,10 @@ source $V_FUNC/ip.func
|
|||
#----------------------------------------------------------#
|
||||
|
||||
# Checking arg number
|
||||
check_args '2' "$#" 'user ip'
|
||||
check_args '2' "$#" 'ip user'
|
||||
|
||||
# Checking argument format
|
||||
format_validation 'user' 'ip'
|
||||
format_validation 'ip' 'user'
|
||||
|
||||
# Checking user
|
||||
is_user_valid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue