Skip to content

Commit 602a8cf

Browse files
Update run.sh
1 parent db66b2f commit 602a8cf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/run.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ installDartSass() {
186186
fi
187187
fi && \
188188
local TIME2=$(current_time_ms) && \
189-
DSSECONDS=$(calculate_duration) && \
189+
DSSECONDS=$(calculate_duration "$TIME1" "$TIME2") && \
190190
echo -e "$msg15 ($DSSECONDS)"
191191
}
192192

@@ -214,13 +214,6 @@ if [ -z "$(echo "$CONFIG_JSON" | jq -r '.module.exports')" ]; then
214214
echo -e "::error::$ERROR_MESSAGE" && exit 1
215215
fi
216216

217-
checkForDartSass() {
218-
if ! command -v sass &> /dev/null; then
219-
local ERROR_MESSAGE=$(ErrorMessage "run.sh" "0134")
220-
echo -e "::error::$ERROR_MESSAGE" && exit 1
221-
fi
222-
}
223-
224217
CONFIG_VALUES=$(echo "$CONFIG_JSON" | jq -r '
225218
.mode,
226219
.install.typescript_compiler,
@@ -254,6 +247,13 @@ install_dependencies() {
254247
TIME4=$(current_time_ms)
255248
PREPROCESSED="n"
256249
compile_assets() {
250+
checkForDartSass() {
251+
if ! command -v sass &> /dev/null; then
252+
local ERROR_MESSAGE=$(ErrorMessage "run.sh" "0134")
253+
echo -e "::error::$ERROR_MESSAGE" && exit 1
254+
fi
255+
}
256+
257257
if [[ "${COMPILE_TS,,}" == "true" ]]; then
258258
PREPROCESSED="y"
259259
source "$GITHUB_ACTION_PATH/lib/compile.sh"

0 commit comments

Comments
 (0)