Fix pj() function when no project has been specified

This commit is contained in:
Marc Cornellà committed 2016-08-16 08:32:43 +02:00
1 parent 7f8851f52f
commit 7d298a3059
1 file changed
+5
+5
View File
@@ -15,6 +15,11 @@ pj () {
project=$*
fi
if [[ -z "$project" ]]; then
echo "You have to specify a project name."
return
fi
for basedir ($PROJECT_PATHS); do
if [[ -d "$basedir/$project" ]]; then
$cmd "$basedir/$project"