Skip to content

Commit

Permalink
don't use set
Browse files Browse the repository at this point in the history
  • Loading branch information
master-hax committed Oct 23, 2024
1 parent e90e495 commit ca5366c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
# Usage: sh -c "$(curl -fSs https://raw.githubusercontent.com/master-hax/pixel-backup-gang/master/install.sh)"
################################################################################

set -eu
pbg_tarball_version="0.0.2"
pbg_tarball_filename="pixel-backup-gang-$pbg_tarball_version.tar.gz"
pbg_tarball_url="https://github.com/master-hax/pixel-backup-gang/releases/download/$pbg_tarball_version/$pbg_tarball_filename"
echo "install.sh: downloading version $pbg_tarball_version from github"
curl -fL $pbg_tarball_url --output $pbg_tarball_filename
echo "install.sh: unpacking the release archive (requires root)"
su --command "tar -xvf $pbg_tarball_filename"
echo "install.sh: make the release executable (requires root)"
su --command "chmod +x ./pixel-backup-gang/*.sh"
curl -fL $pbg_tarball_url --output $pbg_tarball_filename || { echo 'failed to download release archive' ; exit 1; }
echo "install.sh: unpacking the release archive (requires root)" || { echo 'failed to unpack release archive' ; exit 1; }
su --command "tar -xvf $pbg_tarball_filename" || { echo 'failed to inflate release archive' ; exit 1; }
echo "install.sh: making the release executable (requires root)"
su --command "chmod +x ./pixel-backup-gang/*.sh" || { echo 'failed to make scripts executable' ; exit 1; }
echo "install.sh: pixel backup gang successfully installed to $(realpath ./pixel-backup-gang)"

0 comments on commit ca5366c

Please sign in to comment.