From 373e71b8a8e7903912f839f29c9193b6f2cf5af8 Mon Sep 17 00:00:00 2001 From: Tomasz Kapias Date: Sat, 18 Feb 2023 14:33:48 +0100 Subject: [PATCH] add date in default output filename Signed-off-by: Tomasz Kapias --- gh-starred-to-opml.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gh-starred-to-opml.sh b/gh-starred-to-opml.sh index 9dc036f..79bbe72 100644 --- a/gh-starred-to-opml.sh +++ b/gh-starred-to-opml.sh @@ -63,9 +63,9 @@ fi if [[ -z $_FILENAME ]]; then if [[ -z $_LISTNAME ]]; then - _FILENAME="gh_starred_${_USERNAME}.opml" + _FILENAME="gh_starred_${_USERNAME}_$(date '+%y%m%d%H%M').opml" else - _FILENAME="gh_starred_${_USERNAME}_${_LISTNAME}.opml" + _FILENAME="gh_starred_${_USERNAME}_${_LISTNAME}_$(date '+%y%m%d%H%M').opml" fi fi