some comments explaining things
clarified error message
added " more rigerously in case of files with spaces
no newline between "Error" string and error message
added check if ping target is set just in case
fixed bug where i used my dotfiles directory name instead of the variable
do not ignore errornous input but ask again
use -e instead of -a to check for exinstance of file
[[]] instead of []
bugs should be reported in github and not via mail
formatting