Created
August 4, 2015 22:01
-
-
Save brett-stover-hs/7299fb660330de5c2bb0 to your computer and use it in GitHub Desktop.
removal script b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Removal Script B | |
# 1 | |
# Set bash script to exit immediately if any commands fail. | |
set -e | |
# 2 | |
# Setup some constants for use later on. | |
FRAMEWORK_NAME="BrandingFramework" | |
# 3 | |
# Restore backup copy of framework and remove backup | |
if [[ -d "${SRCROOT}/backup" ]]; then | |
rm -rf "${SRCROOT}/${FRAMEWORK_NAME}.framework" | |
cp -rf "${SRCROOT}/backup/${FRAMEWORK_NAME}.framework" "${SRCROOT}/${FRAMEWORK_NAME}.framework" | |
rm -rf "${SRCROOT}/backup" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment