update_gpu_drivers.sh: Improve --dryrun mode

--dryrun left /tmp temp folder behind, and warned the user
uselessly (--dryrun does not do anything permanent).

Also, non-dryrun mode would remove temporary directory _before_
popd, which would trigger some shell warnings in some cases.

BUG=chromium:739235
TEST=./update_gpu_drivers.sh --package img-ddk
TEST=./update_gpu_drivers.sh -n --package img-ddk

Change-Id: I255066ae57998b4cc1e68f14803ab5bebabeb9d2
Reviewed-on: https://chromium-review.googlesource.com/1351864
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed