Skip to content

Requestrr - Change to tar.gz instead of zip #29

@thomst08

Description

@thomst08

Hello,

I currently maintain Requestrr, a user reached out today and was using one of your old scripts to setup Requestrr. I noticed when looking over the script it is downloading and extracting the zip files form GitHub, I am going to stop uploading those version going forward and only providing tar.gz files.

Just wanted to reach out and make the suggestion to update your script. These are the lines I picked up to help :)

dlurl="https://github.com/thomst08/requestrr/releases/download/${version}/requestrr-linux-${arch}.zip"

dlurl="https://github.com/thomst08/requestrr/releases/download/${version}/requestrr-linux-${arch}.tar.gz"

if ! curl "$dlurl" -L -o $HOME/.tmp/requestrr.zip >> "$log" 2>&1; then

if ! curl "$dlurl" -L -o $HOME/.tmp/requestrr.tar.gz >> "$log" 2>&1; then

hosted-scripts/requestrr.sh

Lines 224 to 225 in 68d18a3

unzip -q "$HOME/.tmp/requestrr.zip" -d $HOME/ >> ${log} 2>&1
rm -rf "$HOME/.tmp/requestrr.zip"

tar -xzf "$HOME/.tmp/requestrr.tar.gz" -C $HOME/ >> ${log} 2>&1
rm -rf "$HOME/.tmp/requestrr.tar.gz"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions