Skip to content

Commit ff934d8

Browse files
authored
Do not rescue cp
1 parent 28ad9e1 commit ff934d8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

ext/sass/Rakefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,17 @@ file 'node_modules/sass' do
6464
# TODO: remove after https://github.com/sass/dart-sass/pull/2413
6565
cp File.absolute_path("sass-#{SassConfig.dart_sass_version}.tgz", __dir__), './'
6666

67-
sh 'npm', 'install'
68-
rescue StandardError
6967
begin
70-
sh 'yarn', 'install'
68+
sh 'npm', 'install'
7169
rescue StandardError
7270
begin
73-
sh 'pnpm', 'install'
71+
sh 'yarn', 'install'
7472
rescue StandardError
75-
sh 'bun', 'install'
73+
begin
74+
sh 'pnpm', 'install'
75+
rescue StandardError
76+
sh 'bun', 'install'
77+
end
7678
end
7779
end
7880
end

0 commit comments

Comments
 (0)