summaryrefslogtreecommitdiffstats
path: root/core/modules/splashtool
diff options
context:
space:
mode:
authorSimon Rettberg2020-09-01 16:05:43 +0200
committerSimon Rettberg2020-09-01 16:05:43 +0200
commitb283375c0465e95840c7ab08617d3bb10879e28f (patch)
tree184462f691ce59523feefa73f0418c5ac6b97f2c /core/modules/splashtool
parent[hardware-stats] Fix GPT PARSING (diff)
downloadmltk-b283375c0465e95840c7ab08617d3bb10879e28f.tar.gz
mltk-b283375c0465e95840c7ab08617d3bb10879e28f.tar.xz
mltk-b283375c0465e95840c7ab08617d3bb10879e28f.zip
[splashtool] Fix .gz fallback
Diffstat (limited to 'core/modules/splashtool')
-rwxr-xr-xcore/modules/splashtool/data/opt/openslx/bin/splashtool4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/splashtool/data/opt/openslx/bin/splashtool b/core/modules/splashtool/data/opt/openslx/bin/splashtool
index 0f941be9..b8787365 100755
--- a/core/modules/splashtool/data/opt/openslx/bin/splashtool
+++ b/core/modules/splashtool/data/opt/openslx/bin/splashtool
@@ -56,7 +56,6 @@ draw () {
local img_top="$2"
shift 3
# See ift's an actual file
- [ -s "${ppm}.gz" ] && ppm="${ppm}.gz"
if ! [ -s "$ppm" ]; then
echo "$ppm not found" >&2
exit 1
@@ -118,6 +117,9 @@ if [ "$count" -gt 0 ]; then
else
# Normal mode
# getimgsize
+ if ! [ -s "${ppm}" ]; then
+ ppm="${ppm}.gz"
+ fi
if [ "${ppm%.gz}" != "${ppm}" ]; then
ppm_size="$(zcat "$ppm" | sed -n 2p)"
else