Skip to content

Commit f2f6f7e

Browse files
committed
7zip is now in arch repos as "7z"
1 parent 1965cd4 commit f2f6f7e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

gallery-dl_postprocessing_selector.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,7 @@ if [ "$1" = png ]; then
77
elif [ "$1" = jpg ] || [ "$1" = jpeg ]; then
88
jpegoptim -p --strip-com --strip-iptc --strip-icc --strip-xmp "$inputfile" >/dev/null
99
elif [ "$1" = zip ] || [ "$1" = rar ] || [ "$1" = 7z ]; then
10-
if [ -f /usr/bin/7zz ]; then
11-
sevenzipprog=7zz
12-
else
13-
sevenzipprog=7z
14-
fi
15-
16-
$sevenzipprog x "$inputfile" -o"${inputfile%.*}" || exit 1
10+
7z x "$inputfile" -o"${inputfile%.*}" || exit 1
1711
rm "$inputfile"
1812
find "${inputfile%.*}" -iname "*.png" -exec webpifier.sh {} \;
1913
find "${inputfile%.*}" -iname "*.jpg" -exec jpegoptim -p --workers=max --strip-com --strip-iptc --strip-icc --strip-xmp {} +

0 commit comments

Comments
 (0)