diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-07-06 17:05:51 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-07-06 17:05:51 +0200 |
| commit | 75f5072cc87db95eb533f3e9dab9643468141b19 (patch) | |
| tree | fc42ccf297236569d557f6b788b02ae2e7fd4338 | |
| parent | 86665e7390763b74826e179d4968b4a3dc49226d (diff) | |
| download | scripts-75f5072cc87db95eb533f3e9dab9643468141b19.tar.gz scripts-75f5072cc87db95eb533f3e9dab9643468141b19.zip | |
Add feed source name to menu line
Diffstat (limited to '')
| -rwxr-xr-x | feed | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -39,7 +39,14 @@ getnew() { | |||
| 39 | } | 39 | } |
| 40 | 40 | ||
| 41 | showmenu() { | 41 | showmenu() { |
| 42 | cat "$destdir"/* | $menu | awk '{print $NF}' | xargs $urlopener | 42 | for f in "$destdir"/*; do |
| 43 | ff=$(basename "$f") | ||
| 44 | if [ -s "$f" ]; then | ||
| 45 | while read -r line; do | ||
| 46 | printf '%20s %s\n' "$ff" "$line" | ||
| 47 | done < "$f" | ||
| 48 | fi | ||
| 49 | done | $menu | awk '{print $NF}' | xargs $urlopener | ||
| 43 | } | 50 | } |
| 44 | 51 | ||
| 45 | while getopts "m:" opt; do | 52 | while getopts "m:" opt; do |
