Skip to content

Commit

Permalink
Create install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
master-hax committed Jun 16, 2024
1 parent d591990 commit 24b7672
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh -e

################################################################################
# Description: install the latest version of pixel-backup to the local directory
# Author: Vivek Revankar <vivek@master-hax.com>
# Usage: curl -fl https://raw.githubusercontent.com/master-hax/pixel-backup-gang/master/install.sh | sh
################################################################################

pbg_tarball_url="https://github.com/master-hax/pixel-backup-gang/releases/download/0.0.2/pixel-backup-gang-0.0.2.tar.gz"
pbg_tarball_filename="pixel-backup-gang-latest.tar.gz"
echo "install.sh: downloading the latest release"
curl -fL $pbg_tarball_url --output $pbg_tarball_filename
echo "install.sh: unpacking the release archive (requires root)"
/sbin/su --command "tar -xvf $pbg_tarball_filename"
echo "install.sh: make the release executable (requires root)"
/sbin/su --command "chmod +x ./pixel-backup-gang/*.sh"
echo "install.sh: pixel backup gang successfully installed to $(realpath ./pixel-backup-gang)"

0 comments on commit 24b7672

Please sign in to comment.