diff options
author | bt <bt@btxx.org> | 2024-06-18 10:06:56 -0400 |
---|---|---|
committer | bt <bt@btxx.org> | 2024-06-18 10:06:56 -0400 |
commit | a1fe4d6d7ddb892d21c1463453dee08a8810dc33 (patch) | |
tree | 335a7e98be123f4b72cfad50c2359ca73eacb6d6 /install-dependencies.sh |
Update README and files to reflect sourcehut platform
Diffstat (limited to 'install-dependencies.sh')
-rwxr-xr-x | install-dependencies.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/install-dependencies.sh b/install-dependencies.sh new file mode 100755 index 0000000..f216f6d --- /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 OpenBSD 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_add $p" + pkg_add $p +done |