Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fixed so it works if your name isn't jesse. #1

Merged
merged 1 commit into from

2 participants

@brhelwig

No description provided.

@ktmud ktmud merged commit 4c49570 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 3, 2012
  1. fixes for it works if your name isn't jesse. :-)

    Brandon Helwig authored
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 3 deletions.
  1. +2 −0  .gitignore
  2. +1 −1  bing-cron
  3. +5 −2 bing-wallpaper.sh
View
2  .gitignore
@@ -1 +1,3 @@
.DS_Store
+
+tmp.txt
View
2  bing-cron
@@ -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
Something went wrong with that request. Please try again.