summaryrefslogtreecommitdiff
path: root/uristart
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-01-21 11:40:03 -0600
committerepoch <epoch@hacking.allowed.org>2020-01-21 11:40:03 -0600
commit8a43aa89962b78094698ea4014427b313cd7fff8 (patch)
tree621d526410d3f1e216ae2c730ae336a4a79651de /uristart
parentcb8f92d02fd46dafa696d000de6f22b4b8e9aaa0 (diff)
downloaduritools-8a43aa89962b78094698ea4014427b313cd7fff8.tar.gz
uritools-8a43aa89962b78094698ea4014427b313cd7fff8.zip
I fucked up the simple check of whether $1 was --check or not
Diffstat (limited to 'uristart')
-rwxr-xr-xuristart6
1 files changed, 3 insertions, 3 deletions
diff --git a/uristart b/uristart
index b3feb81..26261ff 100755
--- a/uristart
+++ b/uristart
@@ -9,10 +9,10 @@
ASKUSER="dmenu -p"
if [ "$1" = "--check" ];then
- check=1
+ check=check
shift
else
- check=0
+ check=dont
fi
uri="${1}"
@@ -60,7 +60,7 @@ if ! cut '-d ' -f1 ~/.cache/uristart.log | grep -Fx "$uri" 2>&1 >/dev/null;then
fi
### do the magic
-if [ "$check" ];then
+if [ "$check" = "check" ];then
printf "%s\n" "$(printf "%s\n" "$uri" | sed 's/'\''/'\''\\'\'''\''/g' | uriprintf "$line")"
else
eval "$(printf "%s\n" "$uri" | sed 's/'\''/'\''\\'\'''\''/g' | uriprintf "$line")"