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() { edit_zet() {
query="$1"
file="${ZET_DIR}/${query}/index.adoc" file="${ZET_DIR}/${query}/index.adoc"
if [[ -f "$file" ]]; then if [[ -f "$file" ]]; then
"$EDITOR" "$file" "$EDITOR" "$file"
else else
query="$1"
result="$(search_zets "$query")" result="$(search_zets "$query")"
result_count="$(echo "$result" | grep -c '^')" result_count="$(echo "$result" | grep -c '^')"