From 8a43aa89962b78094698ea4014427b313cd7fff8 Mon Sep 17 00:00:00 2001 From: epoch Date: Tue, 21 Jan 2020 11:40:03 -0600 Subject: I fucked up the simple check of whether $1 was --check or not --- uristart | 6 +++--- 1 file 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")" -- cgit v1.2.3