diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-08-13 21:02:12 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-08-13 21:02:12 +0300 |
commit | 133b072bc4e42150a755d803397a3fe8fa8624b0 (patch) | |
tree | e421823668ca1d11b162e7a0c83f99c25e92342f | |
parent | 4a4a4d7d86d59b6f753cacca9041b4bb5c84e358 (diff) | |
download | ick-helpers-133b072bc4e42150a755d803397a3fe8fa8624b0.tar.gz |
Fix: how we use command -v
-rw-r--r-- | ick_helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ick_helpers.py b/ick_helpers.py index 00599b7..a122cd3 100644 --- a/ick_helpers.py +++ b/ick_helpers.py @@ -94,7 +94,7 @@ class Exec: return output.strip() def got_command(self, cmd): - return self.run_silently('command', '-v', cmd) == 0 + return self.run_silently('sh', '-c', 'command -v "$1"', '-', cmd) == 0 def get_version_from_tag(self, tag): parts = tag.split('-', 1) |