Hi mzak94 I have recreated your script and it worked for me (on RHEL 5.3).
Are you getting any error messages that could help?
There is only one suggestion I would make in the script and one possible problem I can think of...
Suggestion: Instead of if [ "$(ls -A $1)" ]; then use if [ "$(ls...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.