Originally Posted by jpollard
-d is not a variable - it is a test - if the name exists, AND it is a directory.
fi is the end of the if block (hence my recommendation to indent...)
if [ ... ]; then
elsif [ ... ]; then
Thanks, I have to trust you and your wisdom because this "test" alludes me and Google more on Bash scripting.