diff --git a/binaries/Darwin/futurerestore b/binaries/Darwin/futurerestore deleted file mode 100755 index afd438c..0000000 Binary files a/binaries/Darwin/futurerestore and /dev/null differ diff --git a/binaries/Linux/futurerestore b/binaries/Linux/futurerestore deleted file mode 100755 index 7f64607..0000000 Binary files a/binaries/Linux/futurerestore and /dev/null differ diff --git a/downr1n.sh b/downr1n.sh index 3efb61e..83ad8a9 100755 --- a/downr1n.sh +++ b/downr1n.sh @@ -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 &