Added quotes and fixed missing du depth value.

pull/777/head
Thomas Bouve 2016-08-08 09:53:07 +02:00
parent c204a43305
commit 3a347083d2
1 changed files with 3 additions and 3 deletions

View File

@ -122,14 +122,14 @@ function usage ()
group 'base' group 'base'
if [ $(uname) = "Darwin" ]; then if [ $(uname) = "Darwin" ]; then
if [ -n "$1" ]; then if [ -n "$1" ]; then
du -hd $1 du -hd 1 "$1"
else else
du -hd 1 du -hd 1
fi fi
elif [ $(uname) = "Linux" ]; then elif [ $(uname) = "Linux" ]; then
if [ -n $1 ]; then if [ -n "$1" ]; then
du -h --max-depth=1 $1 du -h --max-depth=1 "$1"
else else
du -h --max-depth=1 du -h --max-depth=1
fi fi