From 24b7672dcee56ba14b41641e54790c037fb04eca Mon Sep 17 00:00:00 2001 From: Vivek Date: Sat, 15 Jun 2024 23:56:04 -0700 Subject: [PATCH] Create install.sh --- install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..f3f7784 --- /dev/null +++ b/install.sh @@ -0,0 +1,17 @@ +#!/bin/sh -e + +################################################################################ +# Description: install the latest version of pixel-backup to the local directory +# Author: Vivek Revankar +# 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)"