From e6e52dcf4d9854abc44bf6d3df856d86867b4d07 Mon Sep 17 00:00:00 2001 From: noctuid Date: Fri, 5 May 2017 13:23:04 -0400 Subject: [PATCH] Silence complaints about wid file not existing Addresses #29. --- tdrop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdrop b/tdrop index 2433cda..81b4745 100755 --- a/tdrop +++ b/tdrop @@ -586,7 +586,8 @@ wid_toggle() { fi # get saved window id if already created local wid exists visibility - wid=$(< "$MUTDROP_PATH/$program$num") 2> /dev/null + # cat to silence error + wid=$(cat "$MUTDROP_PATH/$program$num" 2> /dev/null) exists=true if [[ -n $wid ]]; then visibility=$(get_visibility "$wid")