summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-04-06 10:40:23 +0200
committerSimon Rettberg2022-04-06 10:40:23 +0200
commit2f5a4e5e84da136421dccdc899d526f97dbf7e5d (patch)
tree1293b19aa3f2b7293dc53617c8c311f8f91db511
parent[qemu] Add device passthrough debug mode (diff)
downloadmltk-2f5a4e5e84da136421dccdc899d526f97dbf7e5d.tar.gz
mltk-2f5a4e5e84da136421dccdc899d526f97dbf7e5d.tar.xz
mltk-2f5a4e5e84da136421dccdc899d526f97dbf7e5d.zip
[splashtool] Fix size extraction by forcing grep into ASCII modev29r1
-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