From b0b955d8517b349132f6eb7bdb5a85ae9199f67e Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Fri, 15 Dec 2023 15:11:12 +0530 Subject: .scripts: 4chgettofi - notify if folder already exists and dont allow empty vals for folder --- .scripts/4chgettofi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.scripts/4chgettofi b/.scripts/4chgettofi index 61fb2b0..ee88553 100755 --- a/.scripts/4chgettofi +++ b/.scripts/4chgettofi @@ -7,8 +7,16 @@ done [[ $option == "w" ]] && parentdir="$rootpapesdir/w" && nel="nel" || parentdir="$rootpapesdir/wg" -while [[ -d "$parentdir/$dir" ]]; do +while true; do dir=$(tofi --prompt-text "Enter folder name: " --require-match=false