Skip to content

Commit

Permalink
Update Empty Directory Condition
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Jul 1, 2024
1 parent 575ce02 commit 98cdf75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/directory-exist.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

if [ -z "$(ls -A /var/lib/mysql)" ]; then
if [ "$(ls -A /var/lib/mysql | grep -v 'lost+found' | wc -l)" -eq 0 ]; then
echo -n "Empty"
else
echo -n "Not Empty"
Expand Down

0 comments on commit 98cdf75

Please sign in to comment.