Added quotes and fixed missing du depth value.
parent
c204a43305
commit
3a347083d2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue