Skip to content

Commit c1cebcf

Browse files
committed
scripts: more "export VAR=VALUE" fixes
Found by git grep '[^-]export [^&]*=' -- \*.sh Signed-off-by: Junio C Hamano <[email protected]>
1 parent bed137d commit c1cebcf

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

t/t3032-merge-recursive-options.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ test_description='merge-recursive options
1414
. ./test-lib.sh
1515

1616
test_have_prereq SED_STRIPS_CR && SED_OPTIONS=-b
17-
test_have_prereq GREP_STRIPS_CR && export GREP_OPTIONS=-U
17+
if test_have_prereq GREP_STRIPS_CR
18+
then
19+
GREP_OPTIONS=-U
20+
export GREP_OPTIONS
21+
fi
1822

1923
test_expect_success 'setup' '
2024
conflict_hunks () {

t/t5560-http-backend-noserver.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ test_description='test git-http-backend-noserver'
55

66
HTTPD_DOCUMENT_ROOT_PATH="$TRASH_DIRECTORY"
77

8-
test_have_prereq GREP_STRIPS_CR && export GREP_OPTIONS=-U
8+
if test_have_prereq GREP_STRIPS_CR
9+
then
10+
GREP_OPTIONS=-U
11+
export GREP_OPTIONS
12+
fi
913

1014
run_backend() {
1115
echo "$2" |

0 commit comments

Comments
 (0)