mirror of
https://github.com/notwa/rc
synced 2024-07-07 13:39:57 -07:00
9 lines
168 B
Bash
Executable File
9 lines
168 B
Bash
Executable File
#!/usr/bin/env bash
|
|
is_empty() {
|
|
while read -r; do
|
|
[ ! -d "$REPLY" ] && [ -s "$REPLY" ] && return 1
|
|
done < <(find ${1:-.})
|
|
return 0
|
|
}
|
|
is_empty "$@"
|