add-quote 178 B

12345678
  1. #!/bin/bash -e
  2. UUID=$(uuidgen)
  3. printf "content: |\n ...\nauthor: ...\nid: $UUID\n" >quotes/$UUID
  4. if ! $EDITOR quotes/$UUID; then
  5. rm quotes/$UUID
  6. fi
  7. rm -f "quotes/${UUID}~"