From 3a347083d2bcb49918c836feaff6e8b5b0b8ac1b Mon Sep 17 00:00:00 2001 From: Thomas Bouve Date: Mon, 8 Aug 2016 09:53:07 +0200 Subject: [PATCH] Added quotes and fixed missing du depth value. --- plugins/available/base.plugin.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/available/base.plugin.bash b/plugins/available/base.plugin.bash index 3d989c7a..c93ed4e7 100644 --- a/plugins/available/base.plugin.bash +++ b/plugins/available/base.plugin.bash @@ -122,14 +122,14 @@ function usage () group 'base' if [ $(uname) = "Darwin" ]; then if [ -n "$1" ]; then - du -hd $1 + du -hd 1 "$1" else du -hd 1 fi elif [ $(uname) = "Linux" ]; then - if [ -n $1 ]; then - du -h --max-depth=1 $1 + if [ -n "$1" ]; then + du -h --max-depth=1 "$1" else du -h --max-depth=1 fi