mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
refactor
This commit is contained in:
parent
1352ffb81c
commit
eece8ce73c
@ -36,9 +36,10 @@
|
|||||||
script = ''
|
script = ''
|
||||||
set -eu -o pipefail
|
set -eu -o pipefail
|
||||||
|
|
||||||
# We use
|
# We use one of the following
|
||||||
# 2> >(sed 's/^/<3> /' >&2)
|
# some-command 2> >(sed 's/^/<3> /' >&2)
|
||||||
# to prefix each line of stderr with
|
# some-command 2>&1 | sed 's/^/<3> /' 1>&2
|
||||||
|
# to prefix each line of stdout and stderr from some-command with
|
||||||
# "<3> "
|
# "<3> "
|
||||||
# Source: https://superuser.com/a/882025/919675
|
# Source: https://superuser.com/a/882025/919675
|
||||||
#
|
#
|
||||||
@ -47,8 +48,8 @@
|
|||||||
# They can be viewed with
|
# They can be viewed with
|
||||||
# journalctl -b -u Jinja-Compose.service
|
# journalctl -b -u Jinja-Compose.service
|
||||||
|
|
||||||
/jc-config/docker-compose pull 2> >(sed 's/^/<3> /' >&2)
|
/jc-config/docker-compose pull 2>&1 | sed 's/^/<3> /'
|
||||||
/jc-config/docker-compose up -d --wait 2> >(sed 's/^/<3> /' >&2)
|
/jc-config/docker-compose up -d --wait 2>&1 | sed 's/^/<3> /'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user