Skip to content

Commit ab2ef4e

Browse files
committed
try other printf method
1 parent d4fb08d commit ab2ef4e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/prepare_newsletter.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ echo ${news[-1]}
1212
1313
export last_news=`echo ${news[-1]} | sed -r s/0//`
1414
export news_to_create_simple=`echo $((last_news+1))`
15+
1516
echo $news_to_create_simple
1617
printf "%#03s" $news_to_create_simple
17-
export news_to_create=`printf "%#03s" $news_to_create_simple`
18+
19+
printf %03d $news_to_create_simple
20+
21+
export news_to_create=$(printf %03d $news_to_create_simple)
1822
echo $news_to_create
1923
read -e -p "Do you want to create issue $news_to_create? (y/n): " choice
2024

0 commit comments

Comments
 (0)