bash: fix build break bugs.

N/A

build break as like:
return type defaults to 'int' [-Werror=return-type]

Signed-off-by: liminghao <liminghao@xiaomi.com>