From a83fcf0cb1bd6df4cf4de8ba3d3676057a228ba4 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Fri, 26 Oct 2018 15:18:41 +0200 Subject: [PATCH] Pmodules/libpbuild.bash: fixes in coding style --- Pmodules/libpbuild.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pmodules/libpbuild.bash b/Pmodules/libpbuild.bash index 9910693..1c85bbc 100644 --- a/Pmodules/libpbuild.bash +++ b/Pmodules/libpbuild.bash @@ -292,7 +292,7 @@ pbuild::prep() { patch_sources() { cd "${SRC_DIR}" - for (( i=0; i<${#PATCH_FILES[@]}; i++ )); do + for ((i = 0; i < ${#PATCH_FILES[@]}; i++)); do std::info "Appling patch '${PATCH_FILES[i]}' ..." local -i strip_val="${PATCH_STRIPS[i]:-${PATCH_STRIP_DEFAULT}}" patch -p${strip_val} < "${BUILDBLOCK_DIR}/${PATCH_FILES[i]}"