add -l option in bash,update the directory you choose