Permalink
Browse files

Allow the project directory to be a symlink

  • Loading branch information...
1 parent 86b49ae commit 1fcc8792c30b314ffddae4f6713206b19720e4d4 @leto leto committed Jul 15, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 common.sh
View
4 common.sh
@@ -14,7 +14,9 @@ function print_usage()
function check_proj_dir()
{
- if [ ! -d $1 ]; then
+
+ # allow the project dir to be a symlink
+ if [[ !( -d $1 || -L $1 ) ]]; then
echo "ERROR: Project directory $1 does not exist."
print_usage
exit 1

0 comments on commit 1fcc879

Please sign in to comment.