Skip to content

Commit

Permalink
Add fresh option
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGavr committed Sep 17, 2020
1 parent 588c153 commit ef95fe9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shelldio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ option_detail() {
echo -e "--list: Εμφανίζει την λίστα με τους σταθμούς.\n Βρίσκεται στο ~/.shelldio/all_stations.txt"
echo -e "--add : Δημιουργεί το αρχείο ~/.shelldio/my_stations.txt\n και μεταφέρει τους αγαπημένους σας σταθμούς"
echo "--remove: Διαγράφει σταθμούς της επιλογής σας από το my_stations.txt"
echo "--fresh : Συγχρονίζει την λίστα σταθμών με αυτούς στο github repo. "
}


Expand Down Expand Up @@ -154,6 +155,13 @@ while [ "$1" != "" ]; do
remove_station
exit
;;
-f | --fresh )
welcome_screen
echo "Γίνεται λήψη του αρχείου των σταθμών από το αποθετήριο."
sleep 1
curl -sL https://raw.githubusercontent.com/CerebruxCode/shelldio/features/.shelldio/all_stations.txt --output "$HOME/.shelldio/all_stations.txt"
exit
;;
esac
done

Expand Down

0 comments on commit ef95fe9

Please sign in to comment.