Lots of changes

This commit is contained in:
2021-10-22 14:55:52 -04:00
parent f59e3d70e7
commit a188ea73a3
17 changed files with 1861 additions and 185 deletions

View File

@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# This script will add scripts-* to the PATH
# Copyright 2021 Bryan C. Roessler
[[ -f functions ]] && . functions || exit 1
is_root
install -m 644 functions /usr/local/bin/
for script in script-*; do
install -m755 "$script" /usr/local/bin/
done
# Install manual
manual="README.html"
[[ ! -f "$manual" ]] && echo "No manual found, skipping!" && exit 1
for homedir in /home/*; do
remove=("manual.pdf" "manual.odt" "Notes.pdf" "Notes.odt")
for f in "${remove[@]}"; do
[[ -f "$f" ]] && echo "Removing $f" && rm "$f"
done
ln -s "$manual" "${homedir}/Desktop/$manual"
done