bash : own : swap args order.

This commit is contained in:
Dmitry Voronin 2023-10-24 17:26:11 +03:00
parent ea508aa073
commit 201c77d376

View file

@ -1,8 +1,8 @@
# change file ownership to specified user id and restrict access to him. # change file ownership to specified user id and restrict access to him.
own() own()
{ {
local file="$1" local file="$2"
local user="$2" local user="$1"
# default to current dir. # default to current dir.
if [ "$file" = "" ]; then if [ "$file" = "" ]; then