From d18bfcc2c5d3df907d693f54ca90a9c6199039e2 Mon Sep 17 00:00:00 2001 From: Laith Date: Wed, 2 Jan 2019 02:54:34 +0100 Subject: [PATCH] Change TRUEBROWSER to BROWSER --- .scripts/tools/linkhandler | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/tools/linkhandler b/.scripts/tools/linkhandler index 4f364fc..abd6f0a 100755 --- a/.scripts/tools/linkhandler +++ b/.scripts/tools/linkhandler @@ -10,7 +10,7 @@ scihub="http://sci-hub.tw/" # If no url given. Opens browser. For using script as $BROWSER. -[ -z "$1" ] && { "$TRUEBROWSER"; exit; } +[ -z "$1" ] && { "$BROWSER"; exit; } case "$1" in *mkv|*webm|*mp4|*gif|*youtube.com*|*youtu.be*|*hooktube.com*|*bitchute.com*) @@ -23,5 +23,5 @@ case "$1" in setsid curl -sO "$(curl -s "$scihub$*" | grep -Po "(?<=location.href=').+.pdf")" >/dev/null 2>&1 & ;; *) if [ -f "$1" ]; then "$TERMINAL" -e "$EDITOR $1" - else setsid "$TRUEBROWSER" "$1" >/dev/null 2>&1 & fi ;; + else setsid "$BROWSER" "$1" >/dev/null 2>&1 & fi ;; esac