Skip to content

Commit f75a5a8

Browse files
authored
Merge pull request #9 from midwire/propagate-git-directory
Include .git directory on propagate_env_to_host
2 parents 986290c + 74a26b4 commit f75a5a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

global/global_functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function ask {
2929
function load_on_login {
3030
profile_file="$HOME/.bashrc"
3131
if [[ -f "${profile_file}" ]] &&
32-
! grep '$HOME/.env/bash.env.sh' "$profile_file" >/dev/null 2>&1
32+
! grep '. $HOME/.env/bash.env.sh' "$profile_file" >/dev/null 2>&1
3333
then
3434
echo '[[ -r $HOME/.env/bash.env.sh ]] && . $HOME/.env/bash.env.sh' >> "$profile_file"
3535
echo ".env will now load on login."
@@ -115,7 +115,7 @@ propagate_env_to_host() {
115115
PWD=`pwd`
116116
cd $HOME
117117
echo_info "Compressing local environment..."
118-
COPYFILE_DISABLE=1 tar cfvz $ENVFILE --exclude='.git' --exclude='.DS_Store' --exclude='.env/plugins/elocate/elocatedb' .env/ &> /dev/null
118+
COPYFILE_DISABLE=1 tar cfvz $ENVFILE --exclude='.DS_Store' --exclude='.env/plugins/elocate/elocatedb' .env/ &> /dev/null
119119
echo_info "Copying environment to $host..."
120120
scp $ENVFILE $host:
121121
if [[ $? != 0 ]]; then echo "Copy failed!"; return; fi

0 commit comments

Comments
 (0)