Make variables local

This commit is contained in:
2025-12-28 03:23:51 +01:00
parent bc0a1a1065
commit 42ca144213

View File

@ -7,16 +7,16 @@
# Query free games from steam
set offers (
set -l offers (
curl -s 'https://store.steampowered.com/search?maxprice=free&specials=1' |
htmlq a.search_result_row
)
# Scrape the page
set posters (echo $offers | htmlq -a src img)
set links (echo $offers | htmlq -a href a)
set offers (echo $offers | htmlq -t span.title)
set -l posters (echo $offers | htmlq -a src img)
set -l links (echo $offers | htmlq -a href a)
set -l offers (echo $offers | htmlq -t span.title)
# Serialize data into JSON