dcavalca / rpms / systemd

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