timberline-secondary / hackerspace-scripts

Scripts for managing the Hackerspace's network
1 stars 2 forks source link

Accepting both local and internet files for pi uploading #4

Closed PederSkaaravik closed 7 years ago

PederSkaaravik commented 7 years ago

to add the option to use local files from a directory instead of only using an image link.

tylerecouture commented 7 years ago

thoughts:

  1. Ask for either location or url (link)
  2. Check to see if entry is a link (easiest way is to check for http at the beginning? https://stackoverflow.com/questions/33222909/check-argument-passed-to-a-shell-script-is-an-url
  3. if is link, to what already do
  4. else, transfer the file using scp or whatever.
PederSkaaravik commented 7 years ago

working on it right now, i think im about done! expect a push by tonight.