Skip to content

Commit

Permalink
Use same flags for all curl commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Nov 22, 2024
1 parent 95ddccf commit 0233fce
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/tasks/cities_skylines.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ task :cities_skylines do
Dir.mktmpdir do |tmpdir|
repo = 'cities-skylines_force-res'

command '/usr/bin/curl', '--silent', '--location', "https://github.com/crashdump/#{repo}/tarball/HEAD",
command '/usr/bin/curl', '-fsSL', "https://github.com/crashdump/#{repo}/tarball/HEAD",
'-o', "#{tmpdir}/#{repo}.tar.gz"

dir = mods.join(repo)
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/cura.rake
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ task :cura => [:'brew:casks_and_formulae'] do

plugins.each do |name, url|
Dir.mktmpdir do |tmpdir|
command '/usr/bin/curl', '--silent', '--location', url,
command '/usr/bin/curl', '-fsSL', url,
'-o', "#{tmpdir}/#{name}.tar.gz"

plugin_dir = config_dir/'plugins'/name
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/keka.rake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task :keka => [:'brew:casks_and_formulae'] do
repo = 'osx-archive-icons'

Dir.mktmpdir do |dir|
command '/usr/bin/curl', '--silent', '--location', "https://github.com/reitermarkus/#{repo}/tarball/HEAD",
command '/usr/bin/curl', '-fsSL', "https://github.com/reitermarkus/#{repo}/tarball/HEAD",
'-o', "#{dir}/#{repo}.tar.gz"
command '/usr/bin/tar', '-xf', "#{dir}/#{repo}.tar.gz", '--strip-components', '1', '-C', dir

Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/loginwindow.rake
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace :loginwindow do
else
puts ANSI.blue { 'Setting user picture to Gravatar picture …' }
gravatar_id = Digest::MD5.hexdigest('[email protected]')
command sudo, '/usr/bin/curl', '--silent', '--location', "https://gravatar.com/avatar/#{gravatar_id}.png?s=256",
command sudo, '/usr/bin/curl', '-fsSL', "https://gravatar.com/avatar/#{gravatar_id}.png?s=256",
'-o', user_picture
end

Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/textmate.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def download_tbz(url, to:)
dst = to

Dir.mktmpdir do |dir|
command '/usr/bin/curl', '-sL', '--fail', url, '-o', "#{dir}/#{File.basename(dst)}"
command '/usr/bin/curl', '-fsSL', url, '-o', "#{dir}/#{File.basename(dst)}"
extract_tbz "#{dir}/#{File.basename(dst)}", to: dst
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/toshy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ task :toshy do
Dir.mktmpdir do |tmpdir|
repo = 'toshy'

command '/usr/bin/curl', '--fail', '--silent', '--location', 'https://github.com/RedBearAK/toshy/archive/refs/tags/Toshy_v24.10.1.tar.gz',
command '/usr/bin/curl', '-fsSL', 'https://github.com/RedBearAK/toshy/archive/refs/tags/Toshy_v24.10.1.tar.gz',
'-o', "#{tmpdir}/#{repo}.tar.gz"

command '/usr/bin/tar', '-xf', "#{tmpdir}/#{repo}.tar.gz", '--strip-components', '1', '-C', tmpdir
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/vscode.rake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require 'json'
task :vscode => [:'brew:casks_and_formulae', :rust] do
if linux?
Dir.mktmpdir do |tmpdir|
command '/usr/bin/curl', '--silent', '--location', 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64',
command '/usr/bin/curl', '-fsSL', 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64',
'-o', "#{tmpdir}/vscode.deb"
command sudo, 'debconf-set-selections', input: 'code code/add-microsoft-repo boolean true'
command sudo, 'apt', 'install', '--yes', './vscode.deb'
Expand Down

0 comments on commit 0233fce

Please sign in to comment.