Commit bb03a6d7 authored by Kirill Smelkov's avatar Kirill Smelkov

gitlab-backup: There is no need to use ';' in inner block of need_gitlab_config()

It works ok without it:

    ---- 8< ---- z.sh
    #!/bin/bash -e

    {
        read A
        read B
    } < <(echo -e 'AAA\nBBB')

    echo $A
    echo $B
    ---- 8< ----

    $ ./z.sh
    AAA
    BBB
    $ echo $?
    0

/cc @kazuhiko
parent 64a16570
......@@ -26,8 +26,8 @@ need_gitlab_config() {
# various gitlab config values extracted in 1 go (gitlab is very slow to load)
{
read GITLAB_BACKUP_PATH;
read GITLAB_REPOS_PATH;
read GITLAB_BACKUP_PATH
read GITLAB_REPOS_PATH
} < <(gitlab-rails r 'puts Gitlab.config.backup.path, Gitlab.config.gitlab_shell.repos_path')
test -n "$GITLAB_BACKUP_PATH" || die "E: cannot detect GITLAB_BACKUP_PATH"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment