Why do it this way?  It would be nicer to do:
```bash
[[ $WDir == 'scripts' ]] && cd ..