|
|
@ -8,7 +8,7 @@ function ee_lib_git_init() |
|
|
|
|
|
|
|
# Check .git |
|
|
|
if [ ! -d .git ]; then |
|
|
|
ee_lib_echo "Initialize Git On ${ee_git_dir}..." |
|
|
|
ee_lib_echo "Initialize Git on ${ee_git_dir}..." |
|
|
|
git init &>> $EE_COMMAND_LOG \ |
|
|
|
|| ee_lib_error "Unable to initialize Git on $ee_git_dir, exit status = " $? |
|
|
|
fi |
|
|
@ -16,7 +16,7 @@ function ee_lib_git_init() |
|
|
|
# Check for untracked files |
|
|
|
if [ $(git status -s | wc -l) -ne 0 ]; then |
|
|
|
# Add files in Git version control |
|
|
|
git add --all && git commit -am "Initialize Git On $ee_git_dir" &>> $EE_COMMAND_LOG \ |
|
|
|
git add --all && git commit -am "Initialize Git on $ee_git_dir" &>> $EE_COMMAND_LOG \ |
|
|
|
|| ee_lib_error "Unable to Git commit on $ee_git_dir, exit status = " $? |
|
|
|
fi |
|
|
|
done |
|
|
|