Fix read vars: match all 6 SQL columns in list-projs
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user