Originally Posted by brunovecchi Originally Posted by

Nice! I would append '&&' between commands, so that the next one is only executed if the preceding one succeeds.

Let's say your internet connection is down, then the first command fails and then it executes the second one that also needs a connection, and it will obviously fail too.

It's a minor thing, but it makes your otherwise pretty neat script more elegant.