#!/bin/bash # podload.sh - by dual # Syncs podcasts downloaded with podgrab.pl # Local directory LOCAL="/local/dir/podcasts" # Portable directory PRTBL="/portable/dir/podcasts" if test -d $PRTBL; then cd $LOCAL (rsync -rv --delete $LOCAL/ $PRTBL && \ xmessage -center "Podcasts synced! You can unmount your media player now.") || \ xmessage -center "Sync failed! Or no podcasts to sync..." else xmessage -center "$PRTBL not mounted. Exiting..." fi