aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-09 23:20:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-09 23:20:49 +1200
commit7b046454bcd670d03a2a61675a851b9ff1762398 (patch)
tree5a31518bead22fbd5e0ff6d6ebd925296720fc7b
parentAdd slow(1df) and supp(1df) (diff)
downloaddotfiles-7b046454bcd670d03a2a61675a851b9ff1762398.tar.gz
dotfiles-7b046454bcd670d03a2a61675a851b9ff1762398.zip
Remove unneeded shellcheck skips
Latest version (0.4.4) doesn't raise errors on these lines anymore
-rwxr-xr-xbin/hurl2
-rwxr-xr-xbin/spr2
-rwxr-xr-xbin/urlc1
3 files changed, 2 insertions, 3 deletions
diff --git a/bin/hurl b/bin/hurl
index dcc0fd73..16ea48f8 100755
--- a/bin/hurl
+++ b/bin/hurl
@@ -2,7 +2,7 @@
# Extract <a href="..."> URLs from an HTML document or documents
# Input is either stdin or the given arguments concatenated
-cat -- "${@:-/dev/stdin}" | # shellcheck disable=SC2002
+cat -- "${@:--}" |
# Pipe through pup to get all the href links
pup -p 'a attr{href}' |
diff --git a/bin/spr b/bin/spr
index 5fc111e6..8ac846a6 100755
--- a/bin/spr
+++ b/bin/spr
@@ -1,4 +1,4 @@
#!/bin/sh
# Convenience script for posting to sprunge.us pastebin
-cat -- "${@:--}" | # shellcheck disable=SC2002
+cat -- "${@:--}" |
curl -F 'sprunge=<-' http://sprunge.us/
diff --git a/bin/urlc b/bin/urlc
index e306d48f..0998ad4d 100755
--- a/bin/urlc
+++ b/bin/urlc
@@ -26,7 +26,6 @@ td=$(mktd "$self") || exit
list=$td/list head=$td/head body=$td/body
# Iterate through input; ignore leading/trailing whitespace
-# shellcheck disable=SC2002
cat -- "${@:--}" >"$list"
while read -r url ; do