Sfoglia il codice sorgente

Added setup.sh to setup sendMail.sh

master
BinHong Lee 7 anni fa
parent
commit
a106b31a91
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. +8
    -0
      setup.sh

+ 8
- 0
setup.sh Vedi File

@@ -0,0 +1,8 @@
#!/bin/bash
rm sendMail.sh
echo "Please enter the email of your emergency contact: "
read inputline
printf "echo \"I fell from my bike! Please send help!\" | mail -s \"HELP\" -A \"photo.jpg\" $inputline\necho \"Email sent!\"" >> sendMail.sh
chmod 755 sendMail.sh
echo "Emergency contact set as \"$inputline\""


Caricamento…
Annulla
Salva