14 lines
287 B
Bash
Executable File
14 lines
287 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## This script is used by newsbeuter to store starred item.
|
|
|
|
[ -z "$XDG_CONFIG_HOME" ] && XDG_CONFIG_HOME="$HOME/.config"
|
|
|
|
url="$1"
|
|
title="$2"
|
|
description="$3"
|
|
SEP=" "
|
|
OUTPUT="$XDG_CONFIG_HOME/newsbeuter/news_starred"
|
|
|
|
echo "${url}$SEP${title}$SEP${description}" >> "$OUTPUT"
|