Skip to content

Commit

Permalink
Quiet down dir_empty and dir_notempty variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Jul 27, 2022
1 parent 8e5f7eb commit 1990dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install/assets/functions/00-container
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ db_ready() {
}

dir_empty() {
[ ! -n "$(ls -A $1)" ]
[ ! -n "$(ls -A $1 2>/dev/null)" ]
}

dir_notempty() {
[ -n "$(ls -A "$1")" ]
[ -n "$(ls -A $1 2>/dev/null)" ]
}

file_env() {
Expand Down

0 comments on commit 1990dc6

Please sign in to comment.