Make project # entry clearer

This commit is contained in:
2024-08-04 20:22:32 -04:00
parent f2ad61345d
commit e4a12719c0

View File

@@ -530,8 +530,14 @@ interactive_header() {
ask_pn && PROJECTS+=("${ADD_PROJECTS[@]}")
else
for ((c=1; c<2; c++)); do # safe loop that only runs once
echo "Enter a comma-separated list of project numbers to analyze"
((YES)) || read -r -p "Or enter 0 to add a new project or hit Enter for default project ($num): " response
echo
cat <<-EOF
Enter project number(s) to analyze:
* A comma-separated list of project numbers (ex. 2,5,12)
* 0 to add a new project
* Enter to accept the default (newest) project ($num)
EOF
((YES)) || read -r -p "($num): " response
if [[ $response == 0 ]]; then
ask_pn && PROJECTS+=("${ADD_PROJECTS[@]}")
else