Fix installer

This commit is contained in:
2021-10-22 16:42:56 -04:00
parent 0b6e092c20
commit e7f6c5d741

View File

@@ -14,11 +14,12 @@ 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")
remove=("manual.pdf" "manual.odt" "Notes.pdf" "Notes.odt" "README.html")
for f in "${remove[@]}"; do
[[ -f "$f" ]] && echo "Removing $f" && rm "$f"
[[ -f "${homedir}/Desktop/$f" ]] && echo "Removing ${homedir}/Desktop/$f" && rm -f "${homedir}/Desktop/$f"
done
ln -s "$manual" "${homedir}/Desktop/$manual"
done