Fix manual

This commit is contained in:
2022-01-02 22:57:14 -05:00
parent f879ff1c3c
commit e2420ffe3d

View File

@@ -28,13 +28,12 @@ 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" "$manual" "$images_dir") remove=("manual.pdf" "manual.odt" "Notes.pdf" "Notes.odt" "$manual" "$images_dir")
for f in "${remove[@]}"; do for f in "${remove[@]}"; do
rm -rf "${homedir}/Desktop/$f" rm -rf "${homedir}/Desktop/$f"
done done
[[ -d "$homedir/Desktop" ]] && ln -fs "$sourcedir/$manual" "${homedir}/Desktop/Manual/manual.html" [[ -d "$homedir/Desktop" ]] && ln -fs "$sourcedir/$manual" "${homedir}/Desktop/manual.html"
[[ -d "$homedir/Desktop" ]] && ln -fs "$sourcedir/$images_dir" "${homedir}/Desktop/Manual/$images_dir" [[ -d "$homedir/Desktop" ]] && ln -fs "$sourcedir/$images_dir" "${homedir}/Desktop/$images_dir"
done done
cd "$original_dir" || exit $? cd "$original_dir" || exit $?