summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-04-19 15:55:56 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-06-24 00:50:59 +0200
commit82057d57480e53d339c8b6801169ad1509e3cb8b (patch)
tree2dc324178b09cfbc5ba36ec00ddb27e4825327ef /classes
parent08058cb91c28a0b28dc4767e4d1683e3d3cab496 (diff)
update.sh: use command instead of which
Use "command" instead of "which" for sanity checks. This is preferable to several reasons, see: http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script Also always use or (||) syntax to avoid bash script exits. Tested to be working on Ubuntu, Fedora and Arch Linux. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'classes')
0 files changed, 0 insertions, 0 deletions