diff options
author | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-08 10:24:29 +0000 |
---|---|---|
committer | Yoann Vandoorselaere <yoann@mandriva.com> | 1999-12-08 10:24:29 +0000 |
commit | b9b97333067488941954d9991d8dd47c9b2fb9d1 (patch) | |
tree | 767c204dccf80bec846df8f7bb86e441084183ba /init-sh | |
parent | f4ba01f701a60e56b8d9f1a1322f10a6544e3602 (diff) | |
download | msec-b9b97333067488941954d9991d8dd47c9b2fb9d1.tar msec-b9b97333067488941954d9991d8dd47c9b2fb9d1.tar.gz msec-b9b97333067488941954d9991d8dd47c9b2fb9d1.tar.bz2 msec-b9b97333067488941954d9991d8dd47c9b2fb9d1.tar.xz msec-b9b97333067488941954d9991d8dd47c9b2fb9d1.zip |
*** empty log message ***
Diffstat (limited to 'init-sh')
-rwxr-xr-x | init-sh/file_perm.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/init-sh/file_perm.sh b/init-sh/file_perm.sh index acce5c0..0e13e9c 100755 --- a/init-sh/file_perm.sh +++ b/init-sh/file_perm.sh @@ -1,11 +1,13 @@ #!/bin/bash -IFS=" -" +if [ ! -s $1 ]; then + echo "I need a msec permfile in argument". + exit 1 +fi echo -n "Setting files permissions : " -cat $1 | while read file owner perm; do +grep -v "^#" $1 | while read file owner perm; do if [ -a "${file}" ]; then if [ ${owner} != "current" ]; then chown ${owner} ${file} @@ -16,4 +18,3 @@ done echo "done." - |