aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/file_perm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init-sh/file_perm.sh')
-rwxr-xr-xinit-sh/file_perm.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh
index be834b7..acce5c0 100755
--- a/init-sh/file_perm.sh
+++ b/init-sh/file_perm.sh
@@ -5,11 +5,7 @@ IFS="
echo -n "Setting files permissions : "
-for line in `cat /$1`; do
- file=`echo ${line} | awk '{print $1}'`
- owner=`echo ${line} | awk '{print $2}'`
- perm=`echo ${line} | awk '{print $3}'`
-
+cat $1 | while read file owner perm; do
if [ -a "${file}" ]; then
if [ ${owner} != "current" ]; then
chown ${owner} ${file}