naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
Blob Blame History Raw
From 9adf5125e39e15b2868a22fc481c4ce027de4f55 Mon Sep 17 00:00:00 2001
From: Yu Watanabe <watanabe.yu+github@gmail.com>
Date: Tue, 14 Jun 2022 21:06:06 +0900
Subject: [PATCH] test: move "do" at the end of line

(cherry picked from commit 4627fb80bf54f5824570d3b94df9286971f028ac)

Related: #2087652
---
 test/test-functions | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/test/test-functions b/test/test-functions
index cab3e3c015..1b10112329 100644
--- a/test/test-functions
+++ b/test/test-functions
@@ -2250,8 +2250,7 @@ convert_abs_rel() {
     __abssize=${#__absolute[@]}
     __cursize=${#__current[@]}
 
-    while [[ "${__absolute[__level]}" == "${__current[__level]}" ]]
-    do
+    while [[ "${__absolute[__level]}" == "${__current[__level]}" ]]; do
         (( __level++ ))
         if (( __level > __abssize || __level > __cursize ))
         then
@@ -2259,8 +2258,7 @@ convert_abs_rel() {
         fi
     done
 
-    for ((__i = __level; __i < __cursize-1; __i++))
-    do
+    for ((__i = __level; __i < __cursize-1; __i++)); do
         if ((__i > __level))
         then
             __newpath=$__newpath"/"
@@ -2268,8 +2266,7 @@ convert_abs_rel() {
         __newpath=$__newpath".."
     done
 
-    for ((__i = __level; __i < __abssize; __i++))
-    do
+    for ((__i = __level; __i < __abssize; __i++)); do
         if [[ -n $__newpath ]]
         then
             __newpath=$__newpath"/"