Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hoarder Debian/Ubuntu install script - Add error handling; other small fixes #980

Merged
merged 1 commit into from
Feb 9, 2025

Conversation

vhsdream
Copy link
Contributor

@vhsdream vhsdream commented Feb 4, 2025

Script will now exit on errors (and provide some info) and when there is an unset variable. Added check for Corepack v0.31.0 in update function.

Script will now exit on error and when there is an unset variable
@@ -254,6 +267,10 @@ function update {
wget -q "https://github.com/hoarder-app/hoarder/archive/refs/tags/v${RELEASE}.zip"
unzip -q v${RELEASE}.zip
mv hoarder-${RELEASE} ${INSTALL_DIR}
# https://github.com/hoarder-app/hoarder/issues/967
if [[ $(corepack -v) < "0.31.0" ]]; then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will break when corepack reaches 0.100 but I think it's the problem of future me :D

@MohamedBassem MohamedBassem merged commit d6456eb into hoarder-app:main Feb 9, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants