|
|
@ -3,8 +3,9 @@ |
|
|
|
function ee_lib_git() |
|
|
|
{ |
|
|
|
for ee_git_dir in ${@:1:$(($#-1))}; do |
|
|
|
if [ -d $ee_git_dir ]; then |
|
|
|
# Change directory |
|
|
|
cd $ee_git_dir || ee_lib_error "Unable to change directory $ee_git_dir, exit status = " $? |
|
|
|
cd $ee_git_dir |
|
|
|
|
|
|
|
# Check .git |
|
|
|
if [ ! -d .git ]; then |
|
|
@ -20,5 +21,6 @@ function ee_lib_git() |
|
|
|
git add --all && git commit -am "${@: -1}" &>> $EE_COMMAND_LOG \ |
|
|
|
|| ee_lib_error "Unable to Git commit on $ee_git_dir, exit status = " $? |
|
|
|
fi |
|
|
|
fi |
|
|
|
done |
|
|
|
} |
|
|
|