Merge pull request #777 from crahan/fix_usage
OS X fix for usage function.
This commit is contained in:
@@ -121,15 +121,15 @@ function usage ()
|
|||||||
param '1: directory name'
|
param '1: directory name'
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user