Skip to content

Commit f309693

Browse files
Update run.sh
1 parent 2b9a21a commit f309693

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/run.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ installTypeScriptCompiler() {
148148
installHomebrew() {
149149
installNodejs
150150
echo -e "$msg12"
151-
local TIME1=$(python3 "$GITHUB_ACTION_PATH/src/time.py")
151+
local TIME1=$(current_time_ms)
152152
if ! command -v brew &> /dev/null; then # attempt 0: homebrew installed before running _just
153153
# attempt 1: install without logs
154154
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" > /dev/null 2>&1
@@ -165,14 +165,14 @@ installHomebrew() {
165165
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
166166
fi
167167
fi
168-
local TIME2=$(python3 "$GITHUB_ACTION_PATH/src/time.py")
168+
local TIME2=$(current_time_ms)
169169
HBVERSION=$(brew --version)
170-
HBSECONDS=$(node "$GITHUB_ACTION_PATH/src/time.js" "$TIME1" "$TIME2")
170+
HBSECONDS=$(calculate_duration "$TIME1" "$TIME2")
171171
echo -e "$msg13 $HBVERSION ($HBSECONDS)"
172172
}
173173
installDartSass() {
174174
echo -e "$msg14"
175-
local TIME1=$(python3 "$GITHUB_ACTION_PATH/src/time.py")
175+
local TIME1=$(current_time_ms)
176176
if ! command -v sass &> /dev/null; then # attempt 0: dart sass installed before running _just
177177
# attempt 1: install without logs
178178
brew install sass/sass/sass > /dev/null 2>&1
@@ -183,8 +183,8 @@ installDartSass() {
183183
brew install sass/sass/sass
184184
fi
185185
fi
186-
local TIME2=$(python3 "$GITHUB_ACTION_PATH/src/time.py")
187-
DSSECONDS=$(node "$GITHUB_ACTION_PATH/src/time.js" "$TIME1" "$TIME2")
186+
local TIME2=$(current_time_ms)
187+
DSSECONDS=$(calculate_duration "$TIME1" "$TIME2")
188188
echo -e "$msg15 ($DSSECONDS)"
189189
}
190190

0 commit comments

Comments
 (0)