Skip to content

Commit

Permalink
update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Giraudon authored and Thibault Giraudon committed Feb 24, 2023
1 parent 7689be4 commit d052188
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit d052188

Please sign in to comment.