bash : own : swap args order.
This commit is contained in:
parent
ea508aa073
commit
201c77d376
|
@ -1,8 +1,8 @@
|
|||
# change file ownership to specified user id and restrict access to him.
|
||||
own()
|
||||
{
|
||||
local file="$1"
|
||||
local user="$2"
|
||||
local file="$2"
|
||||
local user="$1"
|
||||
|
||||
# default to current dir.
|
||||
if [ "$file" = "" ]; then
|
||||
|
|
Reference in a new issue