From 0c16db897ffd22fe8ad8fc95e2e880bcc8782f48 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Wed, 4 Aug 2021 17:15:18 -0300 Subject: [PATCH] fix(browser): Fix typo redirecting errors do /dev/null --- browser.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/browser.sh b/browser.sh index 44c0600..f6cefc1 100755 --- a/browser.sh +++ b/browser.sh @@ -3,13 +3,13 @@ activity=`kactivities-cli --current-activity | cut -d" " -f3` if [[ $1 =~ .*\&incognitottt$ ]]; then url="${1/\&incognitottt/}" - [[ $activity == "OXO" ]] && /bin/brave --incognito "$url" 2>%1 1>/dev/null & - [[ $activity == "Development" ]] && /home/bruno/Apps/firefox/firefox-bin --private-window "$url" 2>%1 1>/dev/null & - [[ $activity == "Main" ]] && /bin/firefox --private-window "$url" 2>%1 1>/dev/null & - [[ $activity == "Videos" ]] && /bin/firefox --private-window "$url" 2>%1 1>/dev/null & + [[ $activity == "OXO" ]] && /bin/brave --incognito "$url" >/dev/null 2>&1 & + [[ $activity == "Development" ]] && /home/bruno/Apps/firefox/firefox-bin --private-window "$url" >/dev/null 2>&1 & + [[ $activity == "Main" ]] && /bin/firefox --private-window "$url" >/dev/null 2>&1 & + [[ $activity == "Videos" ]] && /bin/firefox --private-window "$url" >/dev/null 2>&1 & else - [[ $activity == "OXO" ]] && /bin/brave "$1" 2>%1 1>/dev/null & - [[ $activity == "Development" ]] && /home/bruno/Apps/firefox/firefox-bin "$1" 2>%1 1>/dev/null & - [[ $activity == "Main" ]] && /bin/firefox "$1" 2>%1 1>/dev/null & - [[ $activity == "Videos" ]] && /bin/firefox "$1" 2>%1 1>/dev/null & + [[ $activity == "OXO" ]] && /bin/brave "$1" >/dev/null 2>&1 & + [[ $activity == "Development" ]] && /home/bruno/Apps/firefox/firefox-bin "$1" >/dev/null 2>&1 & + [[ $activity == "Main" ]] && /bin/firefox "$1" >/dev/null 2>&1 & + [[ $activity == "Videos" ]] && /bin/firefox "$1" >/dev/null 2>&1 & fi