Fix manual
This commit is contained in:
@@ -24,14 +24,16 @@ done
|
||||
|
||||
# Install manual
|
||||
manual="README.html"
|
||||
images_dir="manual-images"
|
||||
|
||||
[[ ! -f "$manual" ]] && echo "No manual found, skipping!" && exit 1
|
||||
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
|
||||
rm -f "${homedir}/Desktop/$f"
|
||||
rm -rf "${homedir}/Desktop/$f"
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user