I am following a tutorial and they use the command
[[ -z "$PORT" ]] && export PORT=8080 and I don't fully understand what it's doing. My knowledge of bash commands is very basic and so I am not even sure what to google to figure this out.
The little knowledge I have suggests to me that this somehow checks if the env variable PORT is set and if not set it to 8080. However, I don't actually understand what is going on, except for the last part, export PORT=8080.
Could anyone explain what the different operations are doing here?
