Fix unbound variable
All checks were successful
/ check (push) Successful in 1m2s

This commit is contained in:
Oliver Davies 2025-09-03 08:45:18 +01:00
parent fcfdc8a580
commit a4e207ed74

View file

@ -16,13 +16,13 @@ delete_zet() {
}
edit_zet() {
query="$1"
file="${ZET_DIR}/${query}/index.adoc"
if [[ -f "$file" ]]; then
"$EDITOR" "$file"
else
query="$1"
result="$(search_zets "$query")"
result_count="$(echo "$result" | grep -c '^')"