tfilmprice: fix detection of fetcher - filmtools - various tools for photograph… | |
git clone git://src.adamsgaard.dk/filmtools | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 1e9b9eb860bc5044bf50eaca99683ca7de8e6b01 | |
parent 48d3f12aefdf158cd79a1ad231a6b50bd998b0a6 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sat, 6 Feb 2021 14:13:57 +0100 | |
filmprice: fix detection of fetcher | |
Diffstat: | |
M filmprice | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/filmprice b/filmprice | |
t@@ -103,9 +103,9 @@ fotoimpex_extract_price() { | |
} | |
get_html() { | |
- if type -v hurl >/dev/null 2>&1; then | |
+ if command -v hurl >/dev/null 2>&1; then | |
hurl "$1" 2>/dev/null | |
- elif type -v curl >/dev/null 2>&1; then | |
+ elif command -v curl >/dev/null 2>&1; then | |
curl -s "$1" 2>/dev/null | |
else | |
die 'no suitable html fetcher found' |