if [ $# -lt 1 ]; then echo "usage: theme " exit -1 fi themes=`find NatureSDK -type d -name Themes` if [ -z "$themes/$1" ]; then echo "Theme not found" exit -1 fi op=`pwd` cd "$themes" for file in `ls "$1"`; do if [[ -e "$file" ]]; then if [[ "`readlink "$file"`" = "$1/$file" ]]; then continue else rm "$file" fi fi ln -s "$1/$file" "$file" done cd "$op"