cryptpad/scripts/convert-favicons-to-ico.sh
Corentin ARNOULD a7e622dddc Fix bash indentation and trailing whitespaces
Some shell scripts had tabs indentation. Made it all four spaces.
Hope it's ok with spaces.

Some files had a trailing space in it. It was not useful and takes few bytes for
nothing.

I didn't delete everything.

You can find all tab indented lines with:

grep -rP '^\t' 2>/dev/null

And more trailing space with:
grep -rP ' $' 2>/dev/null
2024-07-06 10:23:49 +02:00

11 lines
321 B
Bash
Executable File

#!/bin/sh
# SPDX-FileCopyrightText: 2023 XWiki CryptPad Team <contact@cryptpad.org> and contributors
#
# SPDX-License-Identifier: AGPL-3.0-or-later
for f in ../customize.dist/favicon/*.png; do
base="$(basename $f ".png")"
magick convert $f -define icon:auto-resize=16,24,32,48,64,72,96,128,256 "$base.ico"
done