Skip to content

Commit c57255b

Browse files
authored
Remove unused parameters in Rakefile
1 parent c0b9e7a commit c57255b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

ext/sass/Rakefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,14 +288,13 @@ end
288288
# This is a FileUtils extension that defines several additional commands to be
289289
# added to the FileUtils utility functions.
290290
module FileUtils
291-
def unarchive(archive, dest = '.')
292-
mkdir_p dest
291+
def unarchive(archive)
293292
if Gem.win_platform?
294-
sh File.absolute_path('tar.exe', SassConfig.windows_get_folder_path(:System)), '-vxC', dest, '-f', archive
293+
sh File.absolute_path('tar.exe', SassConfig.windows_system_directory), '-vxf', archive
295294
elsif archive.downcase.end_with?('.zip')
296-
sh 'unzip', '-od', dest, archive
295+
sh 'unzip', '-o', archive
297296
else
298-
sh 'tar', '-vxC', dest, '-f', archive, '--no-same-owner', '--no-same-permissions'
297+
sh 'tar', '-vxf', archive, '--no-same-owner', '--no-same-permissions'
299298
end
300299
end
301300

@@ -694,15 +693,15 @@ module SassConfig
694693
end
695694
end
696695

697-
def windows_get_folder_path(folder)
696+
def windows_system_directory
698697
require 'open3'
699698

700699
stdout, stderr, status = Open3.capture3('powershell.exe',
701700
'-NoLogo',
702701
'-NoProfile',
703702
'-NonInteractive',
704703
'-Command',
705-
"[Environment]::GetFolderPath('#{folder}') | Write-Host -NoNewline")
704+
"[Environment]::GetFolderPath('System') | Write-Host -NoNewline")
706705

707706
raise stderr unless status.success?
708707

0 commit comments

Comments
 (0)