|
@ -1,16 +1,16 @@ |
|
|
#!/bin/bash |
|
|
#!/bin/bash |
|
|
set -e |
|
|
set -e |
|
|
|
|
|
|
|
|
project_manager_dir="$(readlink -f "$(dirname "$(readlink -f ${BASH_SOURCE[0]})")/..")" |
|
|
|
|
|
source "$project_manager_dir/bin/includes/includes" |
|
|
|
|
|
if [ -f "$project_manager_dir/etc/config" ] |
|
|
|
|
|
|
|
|
dir="$(readlink -f "$(dirname "$(readlink -f ${BASH_SOURCE[0]})")/..")" |
|
|
|
|
|
source "$dir/bin/includes/includes" |
|
|
|
|
|
if [ -f "$dir/etc/config" ] |
|
|
then |
|
|
then |
|
|
source "$project_manager_dir/etc/config" |
|
|
|
|
|
|
|
|
source "$dir/etc/config" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if [ -f "$project_manager_dir/etc/projects" ] |
|
|
|
|
|
|
|
|
if [ -f "$dir/etc/projects" ] |
|
|
then |
|
|
then |
|
|
source "$project_manager_dir/etc/projects" |
|
|
|
|
|
|
|
|
source "$dir/etc/projects" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
function use { |
|
|
function use { |
|
@ -48,7 +48,7 @@ function list { |
|
|
echo >&2 |
|
|
echo >&2 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if [ "$1" == "" ] |
|
|
|
|
|
|
|
|
if [ "$1" == "" ] && [ -f "$project_manager_dir/etc/config" ] && [ -f "$project_manager_dir/etc/projects" ] |
|
|
then |
|
|
then |
|
|
use |
|
|
use |
|
|
exit |
|
|
exit |
|
|