Skip to content

Commit

Permalink
Merge pull request #5 from kubedb/fix-dir
Browse files Browse the repository at this point in the history
Update Empty Directory Condition
  • Loading branch information
ArnobKumarSaha authored Jul 3, 2024
2 parents 575ce02 + 98cdf75 commit b423beb
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 b423beb

Please sign in to comment.