From 65878aa07452b45c3f17c3ab15508400edd46476 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 18 Sep 2024 07:56:39 +0200 Subject: Some shellcheck --- utils/gentransswitch.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/gentransswitch.sh') diff --git a/utils/gentransswitch.sh b/utils/gentransswitch.sh index 447c9be..20e2bfb 100755 --- a/utils/gentransswitch.sh +++ b/utils/gentransswitch.sh @@ -2,8 +2,8 @@ printf '\tswitch (t) {\n' for f in cubes/transform_??_???.txt; do - t="$(echo $f | sed 's/.*_// ; s/\.txt//')" - mirror_or_rotation="$(echo $t | grep m)" + t="$(echo "$f" | sed 's/.*_// ; s/\.txt//')" + mirror_or_rotation="$(echo "$t" | grep m)" if [ -z "$mirror_or_rotation" ]; then m="rotation" else -- cgit v1.3