refactor: standardize on shorthand for redirecting all output to /dev/null
The shorthand is more prevalent in this codebase, and is something that bash supports, so we should just use the same thing everywhere. Note that we do not use shorthand redirect in Makefile as shell parsing is a bit different in Make and the shorthand redirect doesn't seem to be properly supported, causing CI errors.
This commit is contained in:
@@ -136,7 +136,7 @@ check_container() {
|
||||
while [ $cnt -lt 100 ]; do
|
||||
echo "$(date) [count: $cnt]: waiting for dokku startup"
|
||||
is_up=$(
|
||||
docker exec dokku ps -ef | grep "/usr/sbin/sshd -D" >/dev/null 2>&1
|
||||
docker exec dokku ps -ef | grep "/usr/sbin/sshd -D" &>/dev/null
|
||||
echo $?
|
||||
)
|
||||
echo "" && docker logs dokku
|
||||
|
||||
@@ -344,7 +344,7 @@ setup_test_tls() {
|
||||
local TLS_TYPE="$1"
|
||||
local TLS="/home/dokku/$TEST_APP/tls"
|
||||
|
||||
if ! dokku apps:exists "$TEST_APP" >/dev/null 2>&1; then
|
||||
if ! dokku apps:exists "$TEST_APP" &>/dev/null; then
|
||||
create_app "$TEST_APP"
|
||||
fi
|
||||
mkdir -p "$TLS"
|
||||
|
||||
Reference in New Issue
Block a user