Fix manual

This commit is contained in:
2022-01-02 22:55:03 -05:00
parent 7b4917d0a1
commit f879ff1c3c

View File

@@ -24,14 +24,16 @@ done
# Install manual # Install manual
manual="README.html" manual="README.html"
images_dir="manual-images"
[[ ! -f "$manual" ]] && echo "No manual found, skipping!" && exit 1 [[ ! -f "$manual" ]] && echo "No manual found, skipping!" && exit 1
for homedir in /home/*; do for homedir in /home/*; do
remove=("manual.pdf" "manual.odt" "Notes.pdf" "Notes.odt" "$manual") remove=("manual.pdf" "manual.odt" "Notes.pdf" "Notes.odt" "Manual" "$manual" "$images_dir")
for f in "${remove[@]}"; do for f in "${remove[@]}"; do
rm -f "${homedir}/Desktop/$f" rm -rf "${homedir}/Desktop/$f"
done done
[[ -d "$homedir/Desktop" ]] && ln -fs "$sourcedir/$manual" "${homedir}/Desktop/$manual" [[ -d "$homedir/Desktop" ]] && ln -fs "$sourcedir/$manual" "${homedir}/Desktop/Manual/manual.html"
[[ -d "$homedir/Desktop" ]] && ln -fs "$sourcedir/$images_dir" "${homedir}/Desktop/Manual/$images_dir"
done done