file="~/.gitshots/$(date).jpg" echo "Taking capture into ${file}!" imagesnap -q -w 3 $file
#!/bin/sh imagesnap -q -w 3 "~/.gitshots/$(date).jpg"
Plus the above wont even work as is, since $(date) contains spaces.
This would be "more direct" part.