Permalink
Browse files

Added script to auto update images to the random ones

  • Loading branch information...
1 parent fe4c55c commit 7dec25dcdce2fdf96ac7d212a642a6a106350a44 @ErebusBat committed Dec 27, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 update_random_images.sh
View
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+function cptmp() {
+ # cptmp demitri PATH
+ TMP_FILE=/tmp/$1-geeklet.jpg
+ if [[ -f $TMP_FILE ]]; then rm $TMP_FILE; fi
+ ln "$2" $TMP_FILE
+}
+
+IMG_FINDER="$PWD/tools/random_iphoto_pic.sh"
+DEMITRI=`$IMG_FINDER Demitri`
+LINUX=`$IMG_FINDER Linux`
+
+cptmp demitri "$DEMITRI"
+cptmp linux "$LINUX"

0 comments on commit 7dec25d

Please sign in to comment.