summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-02-05 09:49:32 +0200
committerDylan Araps <dylan.araps@gmail.com>2019-02-05 09:49:32 +0200
commit1d2476790addb178a7ee37058c34f030945b9ca7 (patch)
tree9b89bebc46adbd7096de1dc2e7f8183e80aaa831
parent98af242c856256d5108da428abf6d03523cf4e5e (diff)
general: File size supportsize
-rwxr-xr-xfff4
1 files changed, 3 insertions, 1 deletions
diff --git a/fff b/fff
index 6a15363..8e5cad4 100755
--- a/fff
+++ b/fff
@@ -210,7 +210,9 @@ read_dir() {
list=("${dirs[@]}" "${files[@]}")
- get_file_sizes
+ # Retrieve file sizes if enabled.
+ ((${FFF_SHOW_SIZE:=1} == 1)) &&
+ get_file_sizes
# Indicate that the directory is empty.
[[ -z ${list[0]} ]] &&