|
|
8d419f |
From 9adf5125e39e15b2868a22fc481c4ce027de4f55 Mon Sep 17 00:00:00 2001
|
|
|
8d419f |
From: Yu Watanabe <watanabe.yu+github@gmail.com>
|
|
|
8d419f |
Date: Tue, 14 Jun 2022 21:06:06 +0900
|
|
|
8d419f |
Subject: [PATCH] test: move "do" at the end of line
|
|
|
8d419f |
|
|
|
8d419f |
(cherry picked from commit 4627fb80bf54f5824570d3b94df9286971f028ac)
|
|
|
8d419f |
|
|
|
8d419f |
Related: #2087652
|
|
|
8d419f |
---
|
|
|
8d419f |
test/test-functions | 9 +++------
|
|
|
8d419f |
1 file changed, 3 insertions(+), 6 deletions(-)
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/test/test-functions b/test/test-functions
|
|
|
8d419f |
index cab3e3c015..1b10112329 100644
|
|
|
8d419f |
--- a/test/test-functions
|
|
|
8d419f |
+++ b/test/test-functions
|
|
|
8d419f |
@@ -2250,8 +2250,7 @@ convert_abs_rel() {
|
|
|
8d419f |
__abssize=${#__absolute[@]}
|
|
|
8d419f |
__cursize=${#__current[@]}
|
|
|
8d419f |
|
|
|
8d419f |
- while [[ "${__absolute[__level]}" == "${__current[__level]}" ]]
|
|
|
8d419f |
- do
|
|
|
8d419f |
+ while [[ "${__absolute[__level]}" == "${__current[__level]}" ]]; do
|
|
|
8d419f |
(( __level++ ))
|
|
|
8d419f |
if (( __level > __abssize || __level > __cursize ))
|
|
|
8d419f |
then
|
|
|
8d419f |
@@ -2259,8 +2258,7 @@ convert_abs_rel() {
|
|
|
8d419f |
fi
|
|
|
8d419f |
done
|
|
|
8d419f |
|
|
|
8d419f |
- for ((__i = __level; __i < __cursize-1; __i++))
|
|
|
8d419f |
- do
|
|
|
8d419f |
+ for ((__i = __level; __i < __cursize-1; __i++)); do
|
|
|
8d419f |
if ((__i > __level))
|
|
|
8d419f |
then
|
|
|
8d419f |
__newpath=$__newpath"/"
|
|
|
8d419f |
@@ -2268,8 +2266,7 @@ convert_abs_rel() {
|
|
|
8d419f |
__newpath=$__newpath".."
|
|
|
8d419f |
done
|
|
|
8d419f |
|
|
|
8d419f |
- for ((__i = __level; __i < __abssize; __i++))
|
|
|
8d419f |
- do
|
|
|
8d419f |
+ for ((__i = __level; __i < __abssize; __i++)); do
|
|
|
8d419f |
if [[ -n $__newpath ]]
|
|
|
8d419f |
then
|
|
|
8d419f |
__newpath=$__newpath"/"
|