2012-09-07 01:49:48 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Make sure the appname was passed in and is valid
|
|
|
|
if [[ ${1} == "" ]]; then
|
2012-09-07 18:19:38 +02:00
|
|
|
echo "Usage: restore_installed_build.sh <application>"
|
|
|
|
echo "Restore Brackets to use the installed HTML/CSS/JS files."
|
|
|
|
echo ""
|
|
|
|
echo "Parameters: application - full path to the Brackets application"
|
|
|
|
echo "Example: ./restore_installed_build.sh \"/Applications/Brackets Sprint 14.app\""
|
2012-09-07 01:49:48 +02:00
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
2012-12-22 10:21:32 +01:00
|
|
|
if [ ! -d "${1}" ]; then
|
2012-09-07 01:49:48 +02:00
|
|
|
echo "$1 not found."
|
|
|
|
exit;
|
|
|
|
fi
|
|
|
|
|
2013-02-16 19:50:59 +01:00
|
|
|
if [[ -d "${1}/Contents/dev" || -n $(find -L "${1}/Contents/dev" -type l) ]]; then
|
2012-09-07 01:49:48 +02:00
|
|
|
rm "${1}/Contents/dev"
|
|
|
|
echo "$1 has been restored to the installed configuration."
|
|
|
|
fi
|