From a439a08b36e2f8353b37d0505a80197b7aa0e1d6 Mon Sep 17 00:00:00 2001 From: Saumit Date: Wed, 12 Mar 2025 13:34:11 +0530 Subject: script: ws-tofi better control statements and exit at each stage --- .scripts/ws-tofi | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/.scripts/ws-tofi b/.scripts/ws-tofi index d0f8bcb..25f47c4 100755 --- a/.scripts/ws-tofi +++ b/.scripts/ws-tofi @@ -9,18 +9,35 @@ siteclip=$(echo -e "Yes\nNo" | tofi --prompt-text "Do you have the website link in your clipboard?") [[ "$siteclip" == "Yes" ]] && WEBSITE_URL=$(wl-paste) || WEBSITE_URL=$(tofi --prompt-text "Enter website url:" --require-match false