File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -100,15 +100,19 @@ for filename in `find . -name pubspec.yaml | grep -v dart-sdk | grep -v pub-cach
100
100
# start pub from the /app folder to have correct symlink paths
101
101
/app/dart-sdk/bin/pub get
102
102
103
- message " *** Running pub build"
104
-
105
- if [[ -z " $DART_BUILD_CMD " ]]
103
+ if [ -d " web" ]
106
104
then
107
- message ' Building with "pub build"'
108
- /app/dart-sdk/bin/pub build
105
+ message " *** Running pub build"
106
+ if [[ -z " $DART_BUILD_CMD " ]]
107
+ then
108
+ message ' Building with "pub build"'
109
+ /app/dart-sdk/bin/pub build
110
+ else
111
+ message " Building with \" $DART_BUILD_CMD \" "
112
+ eval $DART_BUILD_CMD
113
+ fi
109
114
else
110
- message " Building with \" $DART_BUILD_CMD \" "
111
- eval $DART_BUILD_CMD
115
+ message ' *** Skipping pub build because "web" folder not found'
112
116
fi
113
117
114
118
done
You can’t perform that action at this time.
0 commit comments