Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Add feed url to feedcacher
  4.  
  5. if [[ $1 ]]
  6. then
  7. printf '%s\n' "FEEDCACHER"
  8. printf '%s\n' "$1" >> "${X_XDG_LIB_DIR}/feedcacher/urls.txt" && tail -n2 "${X_XDG_LIB_DIR}/feedcacher/urls.txt"
  9. else
  10. { echo "No arguments." 1>&2 ; exit 1 ; }
  11. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement