Closed electrocucaracha closed 1 year ago
This looks really strange, actually. The expression should work on xenial as it does on any other Ubuntu version.
However, checking the exit status of command
seems like a better idea than testing its output. I wouldn't mind changing this. But we should probably change it everywhere in the script, not just for apt.
This looks really strange, actually. The expression should work on xenial as it does on any other Ubuntu version.
However, checking the exit status of
command
seems like a better idea than testing its output. I wouldn't mind changing this. But we should probably change it everywhere in the script, not just for apt.
Yeah, it's weird. I guess this bugfix can be related with the different bash versions (Xenial ~4.3). I can do all the similar changes on this script to keep some level of consistency
The way this conditional has been implemented seems to be not working on Ubuntu Xenial Releases: