diff options
author | Jonas Fonseca <jonas.fonseca@gmail.com> | 2018-05-20 14:33:18 -0400 |
---|---|---|
committer | Jonas Fonseca <jonas.fonseca@gmail.com> | 2018-05-20 14:33:36 -0400 |
commit | ff048665fb9489336b16b8cc4f89fd7cf1aef55e (patch) | |
tree | 31763a8dc5962065e6976047f48bbb570c3a2a92 | |
parent | 86c194a42b45632cf71b6b722c06faaa3735253d (diff) |
Only include lines where GIT_* is at the start
-rwxr-xr-x | test/main/git-alias-test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/main/git-alias-test b/test/main/git-alias-test index 7080646b..b9f75b23 100755 --- a/test/main/git-alias-test +++ b/test/main/git-alias-test @@ -19,7 +19,7 @@ steps ' executable alias-vars <<EOF { echo "PWD=\$(pwd)" - env | grep 'GIT_DIR\|GIT_PREFIX\|GIT_WORK_TREE' + env | sed -n '/^\(GIT_DIR\|GIT_PREFIX\|GIT_WORK_TREE\)=/p' } | sed 's,$output_dir,ROOT,' >> "$output_dir/alias-vars" EOF |