Permalink
Browse files

Merge pull request #1 from brhelwig/master

fixed so it works if your name isn't jesse.
  • Loading branch information...
2 parents 0f82a6f + 6a2638a commit 4c49570998e62440c4cff1d81b7d3cec88646a40 @ktmud committed Jun 3, 2012
Showing with 8 additions and 3 deletions.
  1. +2 −0 .gitignore
  2. +1 −1 bing-cron
  3. +5 −2 bing-wallpaper.sh
View
@@ -1 +1,3 @@
.DS_Store
+
+tmp.txt
View
@@ -1,2 +1,2 @@
#min hour mday month wday command
-20 9,12,15,19,22 * * * sh /Users/jesse/bin/bing-wallpaper.sh
+20 9,12,15,19,22 * * * sh ~/Pictures/bing-wallpaper.sh
View
7 bing-wallpaper.sh 100644 → 100755
@@ -1,5 +1,8 @@
-#!/usr/bash
-cd /Users/jesse/projects/bing-wallpapers/
+#!/usr/bin/env bash
+
+mkdir -p ~/Pictures/bing-wallpapers/
+cd ~/Pictures/bing-wallpapers/
+
curl "http://themeserver.microsoft.com/default.aspx?p=Bing&c=Desktop&m=en-US" | grep -o 'url="[^"]*"' | sed -e 's/url="\([^"]*\)"/\1/' | sed -e "s/ /%20/g" > tmp.txt
#read file line

0 comments on commit 4c49570

Please sign in to comment.