summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-02 15:11:09 +0200
committertv <tv@shackspace.de>2015-10-02 15:11:09 +0200
commit64c97edd3f9952cd5e703208c46748a035a515bf (patch)
treefe9d7cb31548ca0011c731adc03f954cd0d98799
parentfbe8f8d12ede9762fceb15b9944b69a4ee6331eb (diff)
use grep instead of bashismic substitution
-rwxr-xr-xget2
1 files changed, 1 insertions, 1 deletions
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"