Skip to content

Commit

Permalink
Updated fetch_and_check
Browse files Browse the repository at this point in the history
  • Loading branch information
dmotte committed Jan 21, 2024
1 parent 277a256 commit 0cab1b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ Vagrant.configure("2") do |config|
end

config.vm.provision "shell", inline: <<-SHELL
# From: https://github.com/dmotte/misc/blob/main/scripts/fetch-and-check.sh
fetch_and_check() {
fetch_and_check() { # Src: https://github.com/dmotte/misc
local c s; c=$(curl -fsSL "$1"; echo x) && \
s=$(echo -n "${c%x}" | sha256sum | cut -d' ' -f1) && \
if [ "$s" = "$2" ]; then echo -n "${c%x}"
Expand Down

0 comments on commit 0cab1b3

Please sign in to comment.