Use $* instead of $@ in mastosearch so bash puts all args in a single string

This commit is contained in:
Anthony Wang 2023-06-07 15:04:19 +00:00
parent 2247d396c9
commit 5bebd74248
Signed by: a
GPG key ID: 42A5B952E6DD8D38

View file

@ -1,3 +1,3 @@
#!/usr/bin/bash
sudo -u mastodon PAGER=less psql -c "select * from statuses where text ilike '%$@%'"
sudo -u mastodon PAGER=less psql -c "select * from statuses where text ilike '%$*%'"