Skip to content

Commit 120ee22

Browse files
committed
changed arguments order
1 parent 05ba096 commit 120ee22

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/v_change_sys_ip_owner

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
#----------------------------------------------------------#
77

88
# Argument defenition
9-
user=$1
10-
ip=$2
9+
ip=$1
10+
user=$2
11+
1112

1213
# Importing variables
1314
source $VESTA/conf/vars.conf
@@ -21,10 +22,10 @@ source $V_FUNC/ip.func
2122
#----------------------------------------------------------#
2223

2324
# Checking arg number
24-
check_args '2' "$#" 'user ip'
25+
check_args '2' "$#" 'ip user'
2526

2627
# Checking argument format
27-
format_validation 'user' 'ip'
28+
format_validation 'ip' 'user'
2829

2930
# Checking user
3031
is_user_valid

0 commit comments

Comments
 (0)