From d052188707011ab0e5233e38729691815b8a1d18 Mon Sep 17 00:00:00 2001 From: Thibault Giraudon Date: Fri, 24 Feb 2023 19:39:46 +0100 Subject: [PATCH] update install.sh --- bin/install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/install.sh b/bin/install.sh index d990a3e..ba64239 100644 --- a/bin/install.sh +++ b/bin/install.sh @@ -22,8 +22,6 @@ rm -rf temp_____ RC_FILE="$HOME/.zshrc" -echo "try to add alias in file: $RC_FILE" - # set up the alias if ! grep "SUBJECT=" "$RC_FILE" &> /dev/null; then echo "cmds not present" @@ -33,7 +31,7 @@ export API_KEY=\"\"\n export CITY=\"Lyon\"\n\n curl -s fr.wttr.in/\$CITY\\\?tpq > ~/todays_news\n\n curl https://newsapi.org/v2/everything -G -d q=\$SUBJECT -d sortBy=popularity -d apiKey=\$API_KEY> ~/print_news/articles/\$SUBJECT\n\n -curl https://newsapi.org/v2/top-headlines -G -d country=\$COUNTRY -d sortBy=popularity -d apiKey=\$API_KEY > ~/print_news/articles/\$COUNTRY\n +curl https://newsapi.org/v2/top-headlines -G -d country=\$COUNTRY -d apiKey=\$API_KEY > ~/print_news/articles/\$COUNTRY\n cd ~\n ./print_news/print_news ./print_news/articles/\$SUBJECT ./print_news/articles/\$COUNTRY >> ~/todays_news\n cat ~/todays_news |& less" "$HOME" >> "$RC_FILE"