A small script for easily creating yes/no bash loops for use in scripts. You can
- Enter a question
- state what happens if yes or no
- save the file to your working directory (automatic renaming if there are duplicates)
- save the file to a custom directory (no matter if ending with "/" or not)
- copy the loop to your clipboard (Wayland only)
I fixed the code completely. It works very well now.
Dependencies:
- bash
- cat
- wl-clip (change it to xclip if you want)
- read
- printf (only for header)
wget https://github.com/trytomakeyouprivate/easy-bash-loops/raw/main/create-loop -p ~/.local/bin
chmod +x ~/.local/bin/create-loop


