Merge pull request #36 from sasa8810/main

download futurerestore using nightly.link
This commit is contained in:
Edwin Nuñez 2023-08-30 08:49:14 -04:00 committed by GitHub
commit 7f0533d11d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -409,6 +409,20 @@ trap _exit_handler EXIT
# ============
# Dependencies
# ============
# Check if futurerestore exists
if [ ! -e "$oscheck"/futurerestore ]; then
echo "[*] Downloading futurerestore please wait..." # futurerestore downloader by sasa :)
if [ "$os" = "Darwin" ]; then
curl -sLo futurerestore-macOS-RELEASE.zip https://nightly.link/futurerestore/futurerestore/workflows/ci/main/futurerestore-macOS-RELEASE.zip
unzip futurerestore-macOS-RELEASE.zip
else
curl -sLo futurerestore-Linux-x86_64-RELEASE.zip https://nightly.link/futurerestore/futurerestore/workflows/ci/main/futurerestore-Linux-x86_64-RELEASE.zip
unzip futurerestore-Linux-x86_64-RELEASE.zip
fi
mv futurerestore "$dir"/
fi
if [ "$os" = "Linux" ]; then
chmod +x getSSHOnLinux.sh
./getSSHOnLinux.sh &