summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcore/modules/splashtool/data/opt/openslx/bin/splashtool4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/splashtool/data/opt/openslx/bin/splashtool b/core/modules/splashtool/data/opt/openslx/bin/splashtool
index 69a76a40..9b3328f7 100755
--- a/core/modules/splashtool/data/opt/openslx/bin/splashtool
+++ b/core/modules/splashtool/data/opt/openslx/bin/splashtool
@@ -131,9 +131,9 @@ else
ppm="${ppm}.gz"
fi
if [ "${ppm%.gz}" != "${ppm}" ]; then
- ppm_size="$( < "$ppm" zcat | head -n 5 | grep -v '^#' | sed -n 2p )"
+ ppm_size="$( < "$ppm" zcat | head -n 5 | grep -a -v '^#' | sed -n 2p )"
else
- ppm_size="$( < "$ppm" head -n 5 | grep -v '^#' | sed -n 2p )"
+ ppm_size="$( < "$ppm" head -n 5 | grep -a -v '^#' | sed -n 2p )"
fi
if [ -z "$ppm_size" ]; then
echo "Invalid ppm? Could not extract dimensions" >&2