Skip to content

Commit db66b2f

Browse files
fix
1 parent a907351 commit db66b2f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/run.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,19 +174,19 @@ installHomebrew() {
174174
}
175175
installDartSass() {
176176
echo -e "$msg14"
177-
local TIME1=$(current_time_ms)
177+
local TIME1=$(current_time_ms) && \
178178
if ! command -v sass &> /dev/null; then # attempt 0: dart sass installed before running _just
179179
# attempt 1: install without logs
180-
brew install sass/sass/sass > /dev/null 2>&1
180+
brew install sass/sass/sass > /dev/null 2>&1 && \
181181
if ! command -v sass &> /dev/null; then
182182
# attempt 2: install with logs
183-
local ERROR_MESSAGE=$(ErrorMessage "run.sh" "0212")
184-
echo -e "$ERROR_MESSAGE"
183+
local ERROR_MESSAGE=$(ErrorMessage "run.sh" "0212") && \
184+
echo -e "$ERROR_MESSAGE" && \
185185
brew install sass/sass/sass
186186
fi
187-
fi
188-
local TIME2=$(current_time_ms)
189-
DSSECONDS=$(calculate_duration)
187+
fi && \
188+
local TIME2=$(current_time_ms) && \
189+
DSSECONDS=$(calculate_duration) && \
190190
echo -e "$msg15 ($DSSECONDS)"
191191
}
192192

0 commit comments

Comments
 (0)