From 201c77d376e4db16677e806f412d38448903ee7f Mon Sep 17 00:00:00 2001 From: home Date: Tue, 24 Oct 2023 17:26:11 +0300 Subject: [PATCH] bash : own : swap args order. --- document/linux/config/bash/module/own.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/document/linux/config/bash/module/own.sh b/document/linux/config/bash/module/own.sh index 9c8e2f0..0e814d1 100644 --- a/document/linux/config/bash/module/own.sh +++ b/document/linux/config/bash/module/own.sh @@ -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