I continued with the script right away. It displayed the following output
linux@Linux:~$ sudo systemctl stop fwupd.service
[sudo] Password for linux:
linux@Linux:~$ fastboot flashing unlock
< waiting for any device >
What should I do? I set the phone to data transfer, or should I set it to USB tethering?