summaryrefslogtreecommitdiff
path: root/start
diff options
context:
space:
mode:
authorepochqwert <epoch@hacking.allowed.org>2018-04-12 10:48:08 +0000
committerepochqwert <epoch@hacking.allowed.org>2018-04-12 10:48:08 +0000
commit47eb00790cfe9badb8f08d4f3e7e3241f1f1649f (patch)
tree6acae03eb1026a4d68a7bda84b1e166048eec126 /start
parent6827f6b8c2ee147f59642f3e3ebbc96f6164ecdc (diff)
downloaduritools-47eb00790cfe9badb8f08d4f3e7e3241f1f1649f.tar.gz
uritools-47eb00790cfe9badb8f08d4f3e7e3241f1f1649f.zip
better format string cutting in printfurl and start now single-quote escapes the url before sending it to printf url
Diffstat (limited to 'start')
-rwxr-xr-xstart2
1 files changed, 1 insertions, 1 deletions
diff --git a/start b/start
index 873f792..9a3dca6 100755
--- a/start
+++ b/start
@@ -1,4 +1,4 @@
#!/bin/sh
scheme="$(printf "%s\n" "$1" | cuturl -s)"
line="$(grep "^${scheme}:" ~/.config/start.conf | cut -d: -f2-)"
-eval "$(printf "%s\n" "$1" | printfurl "$line" )"
+eval "$(printf "%s\n" "$1" | sed 's/'\''/'\''\\'\'''\''/g' | printfurl "$line")"