mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-05 04:21:06 +02:00
It doesn't make much sense to run gconftool when the default automount value is what we already want: false. So in this common case, skip the save/restore logic altogether since we aren't actually changing things. Further, we can merge the `which` check in by checking the exit status of the `gconftool` run. If it fails, the tool doesn't exist. BUG=None TEST=enable `set -x`; run `cros_sdk true`; see gconftool run once in common case Change-Id: I1c6aee945218a8a9df533d9ef207c750f909c252 Reviewed-on: http://gerrit.chromium.org/gerrit/7823 Commit-Ready: Mike Frysinger <vapier@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org>