From 64c97edd3f9952cd5e703208c46748a035a515bf Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 2 Oct 2015 15:11:09 +0200 Subject: use grep instead of bashismic substitution --- get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get b/get index ef2f636..e35fc47 100755 --- a/get +++ b/get @@ -42,7 +42,7 @@ has_sopt() { filter() { set -- "$(cat)" - if test "${1:0:1}" = \"; then + if echo "$1" | grep -q ^\"; then echo "$1" | jq -e -r . else echo "$1" -- cgit v1.2.3