#!/bin/bash

source /opt/scripts_local/shared_functions.sh

PACKAGE_DOWNLOAD="trapexit/mergerfs"
DOWNLOAD_URL=$(curl -s https://api.github.com/repos/{$PACKAGE_DOWNLOAD}/releases/latest | grep browser_download_url | grep debian-bullseye_amd64.deb | grep -wv sha256 | cut -d '"' -f 4) &&
wget "$DOWNLOAD_URL" -O app.deb
sudo dpkg -i app.deb
rm -f app.deb
mergerfs --version