diff options
| author | appeasementPolitik <108810900+appeasementPolitik@users.noreply.github.com> | 2024-10-22 20:47:41 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-22 18:47:41 +0000 |
| commit | c43f390f07098c42db5efce654b07870951b512a (patch) | |
| tree | 50eda8ece09a7495704ca0ae116c15e1c18666a5 | |
| parent | 6f67789b8b6fa909f3572771d7fe7f221d2d33cd (diff) | |
| download | eibhear-c43f390f07098c42db5efce654b07870951b512a.tar.gz eibhear-c43f390f07098c42db5efce654b07870951b512a.tar.zst eibhear-c43f390f07098c42db5efce654b07870951b512a.zip | |
Fix sb-price after bash -> dash change (#1426)
| -rwxr-xr-x | .local/bin/statusbar/sb-price | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/statusbar/sb-price b/.local/bin/statusbar/sb-price index 611ec36..6a79f8a 100755 --- a/.local/bin/statusbar/sb-price +++ b/.local/bin/statusbar/sb-price @@ -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')" ] && |
