From 22fb9cebb3c1e2e709787d84ae12d91ac56e903b Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 18 Sep 2019 02:28:44 -0500 Subject: [PATCH] ptgdp: Remove prefix on log lines --- ptgdp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ptgdp b/ptgdp index e80d9fb..7ccdf7f 100755 --- a/ptgdp +++ b/ptgdp @@ -28,15 +28,13 @@ declare p_search="ytsearch:" # Helper functions log() { [ -z "$1" ] && return 1 # Message body - printf "%s: %s\\n" \ - "$_name" \ + printf "%s\\n" \ "$1" } error() { [ -z "$1" ] && return 1 # Message body # 2: Exit code - printf "%s: \\e[31m%s\\e[0m\\n" \ - "$_name" \ + printf "\\e[31m%s\\e[0m\\n" \ "$1" [ -n "$2" ] && exit "${2:-1}" }