From c47aa4c4279beb700ec18c83fcf74aafc77d76a4 Mon Sep 17 00:00:00 2001 From: Bradley Taunt Date: Wed, 17 Jan 2024 19:44:16 -0500 Subject: Initial commit to cgit and place all suckless programs within installer --- install-dependencies.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 install-dependencies.sh (limited to 'install-dependencies.sh') diff --git a/install-dependencies.sh b/install-dependencies.sh new file mode 100755 index 0000000..d1d7269 --- /dev/null +++ b/install-dependencies.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ "$EUID" -ne 0 ] + then echo "The script has to be run as root." + exit +fi + +echo "This script is designed for FreeBSD and it will not work with in any other OS" +echo "Installing dependencies listed in dependencies.txt..." + +sed -e 's/#.*$//' -e '/^$/d' dependencies.txt | while read p; do + echo "Running pkg install $p" + pkg install -y $p +done -- cgit v1.2.3-54-g00ecf