I see. I'm familiar with people like that...
Well, you said: 1) hardlinks the content of a directory into another place 2) sets up the correct permissions of files in the other place
1) is easy enough (keeping in mind that hardlinks can't cross filesystems) but 2) doesn't make since a link has the same mode as the file it points to.
Right, but they are not completely aware about permissions.-) So I make sure they use the GOOD permissions with those files. (They are mainly windows users).
Your script has the right idea but you are missing the closing of the case statement. The syntax is a bit weird:
case "$1" in foo) do_foo ;;
bar) do_bar ;; esac # "case" written backwards
And there were some other minor bugs, now I have solved and it works (even if there must not be some subdirs). Thank you all;-) Praise