if [[ -d ~/.abc ]]; then
return 1
fi
The code above always fail with return code 1. I created the folder ~/.abc by doing ln -s ~/path/to/the/actual/abc/folder ~/.abc. In the other word, it is a symlink.
I have checked the doc here http://ift.tt/1DK8pO5 but there seems to be no flag to check the existence of a directory which is also a symlink
Aucun commentaire:
Enregistrer un commentaire