move_theme_exit

Send Snippet To: Save this snippet to Code Collector Pro -- view all seydoggy's snippets
language: bash
license: Other

Code for Snippet:

                
if [ ~/Library/Application\ Support/RapidWeaver/_installer_wasMoved.text ]
	then
		rwDir=~/Library/Application\ Support/RapidWeaver
		themePathNew=$(cat "$rwDir"/_installer_themePathNew.text)
		themeDirOrig=$(cat "$rwDir"/_installer_themeDirOrig.text)
 
		mv "$themePathNew" "$themeDirOrig"
		rm "$rwDir"/_installer_wasMoved.text
		rm "$rwDir"/_installer_themePathNew.text
		rm "$rwDir"/_installer_themeDirOrig.text
fi
comments powered by Disqus

Info

Tags: move theme script bash shell filestorm rapidweaver

Link to this snippet:


Download to Code Collector

To use the direct link to your snippet on CodeCollector.net either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 1026
Date Added: 2011-01-26 22:13:20
Last Modified: 0000-00-00 00:00:00

Web Analytics