Skip to content

Commit

Permalink
Update Empty Directory Condition (#11)
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman authored Jul 3, 2024
1 parent 6d7a7f5 commit c4c7dc1
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 c4c7dc1

Please sign in to comment.