aboutsummaryrefslogtreecommitdiff
path: root/bin/hurl
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-07-05 12:01:48 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-07-05 12:01:48 +1200
commit8c622ca5cb2f1bd7db593d629b617a86fff0eabb (patch)
tree28f03f97bc8f4fba500d0777d67b4faa051317c2 /bin/hurl
parentPretend to be Mozilla in urlc(1) (diff)
downloaddotfiles-8c622ca5cb2f1bd7db593d629b617a86fff0eabb.tar.gz
dotfiles-8c622ca5cb2f1bd7db593d629b617a86fff0eabb.zip
Downgrade hurl(1) to a simple /bin/sh script
Not worth the extra dependency just for slightly nicer command presence checking
Diffstat (limited to 'bin/hurl')
-rwxr-xr-xbin/hurl5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/hurl b/bin/hurl
index eedb708a..f8e06f74 100755
--- a/bin/hurl
+++ b/bin/hurl
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#
# Extract <a href="..."> URLs from an HTML document or documents.
@@ -12,9 +12,6 @@
LANG=C.UTF-8
export LANG
-# Check we have the programs we need
-hash pup || exit
-
# Emit the content of the args, or stdin
cat -- "${@:-/dev/stdin}" | ## shellcheck disable=SC2002