Skip to content

Commit

Permalink
Conditionally install biftool
Browse files Browse the repository at this point in the history
Signed-off-by: aptalca <541623+aptalca@users.noreply.github.com>
  • Loading branch information
aptalca committed Sep 2, 2024
1 parent 6667b98 commit 240ba62
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/with-contenv bash

# This is an install script that is designed to run after init-mods-package-install
# so it can take advantage of packages installed
# init-mods-end depends on this script so that later init and services wait until this script exits

echo "**** Installing BIF Tool ****"
curl -L \
"https://github.com/rokudev/samples/raw/master/utilities/bif%20tool/biftool_linux.zip" \
-o /tmp/biftool_linux.zip && \
if [[ ! -f /usr/bin/biftool ]]; then
echo "**** Installing BIF Tool ****"
curl -fL \
"https://github.com/rokudev/samples/raw/master/utilities/bif%20tool/biftool_linux.zip" \
-o /tmp/biftool_linux.zip && \
cd /tmp && \
unzip -uo biftool_linux.zip -d /usr/bin
unzip -uo biftool_linux.zip -d /usr/bin
else
echo "**** BIF Tool already installed ****"
fi

0 comments on commit 240ba62

Please sign in to comment.