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/gentranstests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'utils/gentranstests.sh') diff --git a/utils/gentranstests.sh b/utils/gentranstests.sh index 62ebbda..a257a0a 100755 --- a/utils/gentranstests.sh +++ b/utils/gentranstests.sh @@ -8,9 +8,9 @@ i=100 while read -r line; do [ -z "$line" ] && continue - trans_piece="$(echo $line | awk '{print $1}' | tr -d 'rm')" - move1="$(echo $line | awk '{print $2}')" - move2="$(echo $line | awk '{print $3}')" + trans_piece="$(echo "$line" | awk '{print $1}' | tr -d 'rm')" + move1="$(echo "$line" | awk '{print $2}')" + move2="$(echo "$line" | awk '{print $3}')" rotation="rotation $trans_piece" @@ -23,7 +23,7 @@ while read -r line; do i=$((i+1)) mirrored="mirrored $trans_piece" - move2m="$(echo ${move2} | tr 'LR' 'RL')3" + move2m="$(echo "${move2}" | tr 'LR' 'RL')3" file1="$(ls cubes | grep "move_.*_${move1}.txt")" file2="$(ls cubes | grep "move_.*_${move2m}.txt")" -- cgit v1.3