Fix read vars: match all 6 SQL columns in list-projs

This commit is contained in:
lyn
2026-04-13 13:30:49 +00:00
parent 50fe0d87d7
commit 5c8d1d3529

View File

@@ -50,7 +50,7 @@ fi
echo "| proj-name | owner | url | can-write |" echo "| proj-name | owner | url | can-write |"
echo "|------------|-------|-----|-----------|" echo "|------------|-------|-----|-----------|"
echo "$RESULT" | while IFS=$'\t' read -r name owner is_private can_write; do echo "$RESULT" | while IFS=$'\t' read -r name owner is_private is_owner can_see can_write; do
can_write_val=$([[ "$can_write" == "1" ]] && echo "yes" || echo "no") can_write_val=$([[ "$can_write" == "1" ]] && echo "yes" || echo "no")
echo "| $name | $owner | https://git.hangman-lab.top/$owner/$name.git | $can_write_val |" echo "| $name | $owner | https://git.hangman-lab.top/$owner/$name.git | $can_write_val |"
done done