Skip to content

Commit

Permalink
Fix sb-price after bash -> dash change (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
appeasementPolitik authored Oct 22, 2024
1 parent 6f67789 commit c43f390
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .local/bin/statusbar/sb-price
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ filestat="$(stat -c %x "$pricefile" 2>/dev/null)"

[ -d "$dir" ] || mkdir -p "$dir"

updateprice() { curl -sf -m 1 --fail-early $denom.$url/{1$target,$target$interval} --output "$pricefile" --output "$chartfile" ||
updateprice() { curl -sf \
--fail-early "${denom}.${url}/1${target}" "${denom}.${url}/${target}${interval}" \
--output "$pricefile" --output "$chartfile" ||
rm -f "$pricefile" "$chartfile" ;}

[ "${filestat%% *}" != "$(date '+%Y-%m-%d')" ] &&
Expand Down

0 comments on commit c43f390

Please sign in to comment.