From: Yu Watanabe Date: Tue, 14 Jun 2022 12:06:06 +0000 (+0900) Subject: test: move "do" at the end of line X-Git-Tag: v252-rc1~808^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4627fb80bf54f5824570d3b94df9286971f028ac;p=thirdparty%2Fsystemd.git test: move "do" at the end of line --- diff --git a/test/test-functions b/test/test-functions index 7584bda45ac..8fba54c9e09 100644 --- a/test/test-functions +++ b/test/test-functions @@ -2321,8 +2321,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 @@ -2330,8 +2329,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"/" @@ -2339,8 +2337,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"/"