From 36fd84660150bd0ab83afc53e9262c88a8ac0e4c Mon Sep 17 00:00:00 2001 From: tteckster Date: Tue, 14 May 2024 02:00:33 -0400 Subject: [PATCH] Update frigate-install.sh stop spinner during "Installing Frigate" --- install/frigate-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install/frigate-install.sh b/install/frigate-install.sh index defac274..d67cadba 100644 --- a/install/frigate-install.sh +++ b/install/frigate-install.sh @@ -48,6 +48,7 @@ msg_ok "Set Up Hardware Acceleration" RELEASE=$(curl -s https://api.github.com/repos/blakeblackshear/frigate/releases/latest | jq -r '.tag_name') #RELEASE=$(curl -s https://api.github.com/repos/blakeblackshear/frigate/releases/latest | grep -o '"tag_name": *"[^"]*"' | cut -d '"' -f 4) msg_info "Installing Frigate $RELEASE (Perseverance)" +if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi cd ~ mkdir -p /opt/frigate/models wget -q https://github.com/blakeblackshear/frigate/archive/refs/tags/${RELEASE}.tar.gz -O frigate.tar.gz