move_theme_launch

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

Code for Snippet:

                
themeName="$1".rwtheme
rwDir=~/Library/Application\ Support/RapidWeaver
themePathNew="$rwDir"/"$themeName"
 
if [ ! -d "$themePathNew" ]
	then
		themePathOrig=`find "$rwDir" -name "$themeName"`
		themeDirOrig=`dirname "$themePathOrig"`
		mv "$themePathOrig" "$rwDir"
 
		echo $themeName " was moved from " $themeDirOrig > "$rwDir"/_installer_wasMoved.text
		echo $themePathNew > "$rwDir"/_installer_themePathNew.text
		echo $themeDirOrig > "$rwDir"/_installer_themeDirOrig.text
fi
comments powered by Disqus

Info

Tags: move theme launch 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: 956
Date Added: 2011-01-26 22:15:02
Last Modified: 0000-00-00 00:00:00

Web Analytics