Merge pull request #777 from crahan/fix_usage

OS X fix for usage function.
pull/780/head
Nils Winkler 2016-08-08 09:59:02 +02:00 committed by GitHub
commit 720936b979
1 changed files with 4 additions and 4 deletions

View File

@ -121,15 +121,15 @@ function usage ()
param '1: directory name'
group 'base'
if [ $(uname) = "Darwin" ]; then
if [ -n $1 ]; then
du -hd $1
if [ -n "$1" ]; then
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