Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save brett-stover-hs/7299fb660330de5c2bb0 to your computer and use it in GitHub Desktop.
Save brett-stover-hs/7299fb660330de5c2bb0 to your computer and use it in GitHub Desktop.
removal script b
# 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