i am le epic gay
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

41 wiersze
1.4KB

  1. #!/bin/bash
  2. # made by Vane Vander <https://mayvaneday.keybase.pub>
  3. # this is version 0.1.2, last edited on 3 March 2019
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. USERNAME=seliph
  15. HOME=/home/kodachi
  16. if [ "$1" = "clearall" ]
  17. then
  18. rm ~/.plan
  19. touch ~/.plan
  20. sftp -q -i ~/.ssh/circumlunar.space $USERNAME@circumlunar.space <<< $"put -p $HOME/.plan"
  21. sftp -q -i ~/.ssh/tilde.team solstice@tilde.team <<< $"put -p $HOME/.plan"
  22. echo "status file has been cleared"
  23. fi
  24. if [ "$1" = "post" ]
  25. then
  26. echo $2 > ~/.plan
  27. date >> ~/.plan
  28. sleep 0.5
  29. echo "status received!"
  30. sftp -q -i ~/.ssh/circumlunar.space $USERNAME@circumlunar.space <<< $"put -p $HOME/.plan"
  31. sftp -q -i ~/.ssh/tilde.team solstice@tilde.team <<< $"put -p $HOME/.plan"
  32. sleep 0.5
  33. echo "status has been posted!"
  34. fi