Dotfiles/systemd/HOME/.config/systemd/user/checkStock
2021-11-16 10:26:21 +00:00

9 lines
236 B
Bash
Executable file

#!/usr/bin/env bash
url="https://pine64.com/product/pinecil-smart-mini-portable-soldering-iron/"
string="out of stock"
curl -sL "$url" | hq h1 text | grep -vqi "$string"
if [ "$?" -eq 0 ]; then
notify-send "Pinecil back in stock"
fi