From 5c27de9b7f40ddb724dbfc52543d85c4a1f6c1dc Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Thu, 17 Jan 2019 10:16:45 -0600 Subject: [PATCH] Fix: Reading slop output Fixes #2. Thanks to @Noah2610 for reporting. --- bashcaster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashcaster.sh b/bashcaster.sh index 45a08ac..33f9871 100755 --- a/bashcaster.sh +++ b/bashcaster.sh @@ -99,7 +99,7 @@ function set_to_screen_dimensions { function set_with_slop { check_program slop || return 1 - read left top width height < <(slop -f '%x %y %w %h') + read left top width height <<<"$(slop -f '%x %y %w %h')" } function set_rectangle {