Open ar4s-gh opened 2 weeks ago
I'm going to follow the following steps to help you solve the GitHub issue:
Here are the changes we decided to make. I'm done making edits and now I'm just validating the changes using a linter to catch any mistakes like syntax errors or undefined variables:
examples/curl-noblerom.sh
Create a new file named curl-noblerom.sh in the examples directory. This file will be based on the existing curl.sh script with modifications to download a file from a different URL, calculate its SHA-256 hash, and save both the downloaded file and hash file in the uploads directory.
#!/bin/bash
set -e -x -o pipefail
# Example by Alex Ellis
curl -s https://checkip.amazonaws.com > ip.txt
curl -L https://1drv.ms/u/s!AqGdTk4hyeaFiLN7YfczXkKMsylQVg?e=s1vO0s -o noblerom.zip
mkdir -p uploads
cp ip.txt ./uploads/
mv noblerom.zip ./uploads/
sha256sum ./uploads/noblerom.zip > SHA256-noblerom.zip.txt
mv SHA256-noblerom.zip.txt ./uploads/
Your changes have been successfully made to the branch sweep/create_a_curlnobleromsh_in_examples
. I have validated these changes using a syntax checker and a linter.
[!TIP] To recreate the pull request, edit the issue title or description.
This is an automated message generated by Sweep AI.
The noblerom image needs to be put in the uploads folder, along with its sha256 hash in a text file, to be clear.
Details
Use the other curl script in /examples as a reference and change the target URL to
https://1drv.ms/u/s!AqGdTk4hyeaFiLN7YfczXkKMsylQVg?e=s1vO0s
.Additionally, please get the SHA-256 hash of the download and put it in a .txt file of the same name with "SHA256" prepended, put in the /uploads directory.
DONT FORGET TO INCLUDE THE noblerom.zip in /uploads. There should be 3 files in /uploads by the time the script exits
Branch
No response