Skip to content

Commit

Permalink
Merge pull request #7 from zkld123/master
Browse files Browse the repository at this point in the history
fixed a bug in funcs.sh
  • Loading branch information
kai-wei committed Mar 18, 2013
2 parents 42ebd55 + 409042b commit 98e079c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf/funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function check_dir() {

function dir_size() {
for item in $($HADOOP_EXECUTABLE fs -dus $1); do
if [[ $item =~ [0-9]+ ]]; then
if [[ $item =~ ^[0-9]+$ ]]; then
echo $item
fi
done
Expand Down

0 comments on commit 98e079c

Please sign in to comment.