From d0c2335f355ed3ee14fd7a6d5e392938d8c8bbeb Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sun, 29 Jul 2018 18:00:50 -0600 Subject: [PATCH] Removed restorer functions. No longer needed as these have been eclipsed by the restore from backup functionality that uses rsync. --- bin/run | 1 - lib/restorers.sh | 31 ------------------------------- 2 files changed, 32 deletions(-) delete mode 100644 lib/restorers.sh diff --git a/bin/run b/bin/run index 0c922ff..d254bd3 100755 --- a/bin/run +++ b/bin/run @@ -10,7 +10,6 @@ source lib/installers.sh source lib/options.sh source lib/reinstallers.sh -source lib/restorers.sh source lib/settings.sh source lib/uninstallers.sh source lib/utilities.sh diff --git a/lib/restorers.sh b/lib/restorers.sh deleted file mode 100644 index f2debd6..0000000 --- a/lib/restorers.sh +++ /dev/null @@ -1,31 +0,0 @@ -#! /usr/bin/env bash - -# DESCRIPTION -# Defines software restore functions. - -# Label: Restore Preference -# Description: Restores an application preference. -# Parameters: $1 (required) - The backup volume root path, $2 (required) - The preference file. -restore_preference() { - local backup_root="$1" - local preference_file="$2" - local backup_path="$backup_root/Users/$USER/Library/Preferences/$preference_file" - local restore_root="$HOME/Library/Preferences" - - cp -p "$backup_path" "$restore_root" -} -export -f restore_preference - -# Label: Restore Application Support -# Description: Restores application support files. -# Parameters: $1 (required) - The backup volume root path, $2 required - The application name. -restore_app_support() { - local backup_root="$1" - local app_name="$2" - local backup_path="$backup_root/Users/$USER/Library/Application Support/$app_name" - local restore_path="$HOME/Library/Application Support" - - mkdir -p "$restore_path" - cp -pR "$backup_path" "$restore_path" -} -export -f restore_app_support