diff options
| author | epoch <epoch@hacking.allowed.org> | 2020-01-21 11:40:03 -0600 | 
|---|---|---|
| committer | epoch <epoch@hacking.allowed.org> | 2020-01-21 11:40:03 -0600 | 
| commit | 8a43aa89962b78094698ea4014427b313cd7fff8 (patch) | |
| tree | 621d526410d3f1e216ae2c730ae336a4a79651de | |
| parent | cb8f92d02fd46dafa696d000de6f22b4b8e9aaa0 (diff) | |
| download | uritools-8a43aa89962b78094698ea4014427b313cd7fff8.tar.gz uritools-8a43aa89962b78094698ea4014427b313cd7fff8.zip | |
I fucked up the simple check of whether $1 was --check or not
| -rwxr-xr-x | uristart | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -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")" | 
