From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=HXftxVd9Y6TgvAXpyS5D1dm1Zqc98UEGRhCzVnhi8Ho=; b=OQD02gTnAfjw9R4dOoaPNlWeQWIYW4mJZkb2l6GqVTIvtzJa6YwkPkACgAbSeyhhjz Ofge/Llee2k1CAlri7ud9IQq5in7LG4A/RChJd1/WNaoxToxtNdY7QYdSsmBO1OkNvjd tln9TcApLo8PUOcOW5mekunQodH7pIGahAJHZfdNoak7/kCJpi371QuwhFWioPGS1lsL 9PTq6gsv9h0Xnpi3UKjcBETVDha2A/EQIcSg9w5K73Ya9fQRn+rXORPLpzdY/Ndw7fmp 8eCz8ZUlUvAj3k2OMLCNLKE0xfXgSLxvl72tx2zQ7Nm6/owX2VKerYmF93or6MX6AVYI rV6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=HXftxVd9Y6TgvAXpyS5D1dm1Zqc98UEGRhCzVnhi8Ho=; b=kjx0h7GkLuYhOm98o4sj2Cx6zdUwWk29Yidi99zTt8gqaPclxGOLqjqQ0MnyM1RYC3 RQ4vcTGIHoEIZbnKrvUit14WoyMQrqrm6oA4tiucInI2k62m/T8bVHgixoVlU6qZIXIu dYcnOvpfMgzyhzfHjKDZ2+QH+SlkfackegsDb92MWrPm2xHKkPtCKHXwn/bKuW67/jvy OdIHSdaOUL7EUd5se2Qv/SWsZ81QFx7/wcnJu+gPnHPKkcWy2K7ZljQX2uNSk4MboEbm xrusYmx9Wxiwtkw9wzekmjdgUU99d1pAE3Fch6xHn9PQMsQnAFWWHzs7oo23ANWq8jyI fHqA== X-Gm-Message-State: AOAM531nzxy/rqqyRbXy2gRV5YN2oVnshuyxlHTz2SFhztmt2hmg32L/ G58PQ4S+sditS1nqfGpmlhAFBvlz9cE= X-Google-Smtp-Source: ABdhPJzvYoQkyrHRdAzHuYYJN/t82V4P+PFo4ih+fqacffTUDIVcoRsGm0p64UmZdq8NQEogvWLCGQ== X-Received: by 2002:a05:6512:4002:: with SMTP id br2mr9843909lfb.599.1632499091501; Fri, 24 Sep 2021 08:58:11 -0700 (PDT) From: Leonid Krivoshein To: make-initrd@lists.altlinux.org Message-ID: Date: Fri, 24 Sep 2021 18:58:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Language: ru Content-Transfer-Encoding: 7bit Subject: [make-initrd] [PATCH v1 26/41] fork pipeline: bootchain-sh-functions: whitespaces X-BeenThere: make-initrd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: make-initrd@lists.altlinux.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2021 15:58:14 -0000 Archived-At: List-Archive: --- .../data/bin/bootchain-sh-functions | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/make-initrd/features/bootchain-core/data/bin/bootchain-sh-functions b/make-initrd/features/bootchain-core/data/bin/bootchain-sh-functions index 662d069..07a059a 100644 --- a/make-initrd/features/bootchain-core/data/bin/bootchain-sh-functions +++ b/make-initrd/features/bootchain-core/data/bin/bootchain-sh-functions @@ -26,18 +26,18 @@ resolve_target() { local target="$1" case "${target%%/*}" in - '') - ;; - pipe[0-9]|pipe[0-9][0-9]|pipe[0-9][0-9][0-9]) - target="$mntdir/dst/$target" - ;; - *) - if [ -z "${prevdir-}" ]; then - message "no previous stop to use" - return - fi - target="$prevdir/${target#/}" - ;; + '') + ;; + pipe[0-9]|pipe[0-9][0-9]|pipe[0-9][0-9][0-9]) + target="$mntdir/dst/$target" + ;; + *) + if [ -z "${prevdir-}" ]; then + message "no previous stop to use" + return + fi + target="$prevdir/${target#/}" + ;; esac printf '%s' "$target" } -- 2.21.0