Why after call **cd** command on below script, the second echo line don't work?

```
#!/bin/bash
LOGFILE='my.log'
echo 'log line 1' >> $LOGFILE
cd folder-x
echo 'log line 2' >> $LOGFILE

```

And without cd command it's work?

```
#!/bin/bash
LOGFILE='my.log'
echo 'log line 1' >> $LOGFILE
#cd folder-x
echo 'log line 2' >> $LOGFILE

```