@@ -32,8 +32,8 @@ echo "Running integration tests on Node $NODE_VERSION"
3232mv next.config.js next.config.js.bak
3333
3434for NEXTJS_VERSION in 10 11 12 13; do
35- for USE_APPDIR in true false ; do
36- if ([ " $NEXTJS_VERSION " -lt " 13" ] || [ " $NODE_MAJOR " -lt " 16" ]) && [ " $USE_APPDIR " == true ]; then
35+ for USE_APPDIR in " true" " false" ; do
36+ if ([ " $NEXTJS_VERSION " -lt " 13" ] || [ " $NODE_MAJOR " -lt " 16" ]) && [ " $USE_APPDIR " == " true" ]; then
3737 # App dir doesn not work on Next.js < 13 or Node.js < 16
3838 continue
3939 fi
@@ -127,7 +127,7 @@ for NEXTJS_VERSION in 10 11 12 13; do
127127 elif [ " $NEXTJS_VERSION " -eq " 12" ]; then
128128 sed " s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5 /g" < next12.config.template > next.config.js
129129 elif [ " $NEXTJS_VERSION " -eq " 13" ]; then
130- if [ " $USE_APPDIR " == true ]; then
130+ if [ " $USE_APPDIR " == " true" ]; then
131131 sed " s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5 /g" < next13.appdir.config.template > next.config.js
132132 else
133133 sed " s/%RUN_WEBPACK_5%/$RUN_WEBPACK_5 /g" < next13.config.template > next.config.js
@@ -147,7 +147,7 @@ for NEXTJS_VERSION in 10 11 12 13; do
147147 # we keep this updated as we run the tests, so that if it's ever non-zero, we can bail
148148 EXIT_CODE=0
149149
150- if [ " $USE_APPDIR " == true ]; then
150+ if [ " $USE_APPDIR " == " true" ]; then
151151 echo " Skipping server tests for appdir"
152152 else
153153 echo " [nextjs@$NEXTJS_VERSION | webpack@$WEBPACK_VERSION ] Running server tests with options: $args "
0 commit comments