Import settings function

This commit is contained in:
Michael Stanclift 2020-05-22 10:46:24 -05:00
parent 9b60ea604a
commit d3376947d5

View File

@ -29,10 +29,11 @@ YELLOW='\033[0;93m'
PURPLE='\033[0;95m'
NC='\033[0m'
##############################################
# FUNCTION DEFINITIONS #######################
# IMPORT SETTINGS
# Import Settings
function import_gs {
echo -e "${CYAN}Importing gravity-sync.conf settings${NC}"
if [ -f ~/${LOCAL_FOLDR}/gravity-sync.conf ]
then
@ -43,8 +44,7 @@ else
echo -e "Please review installation documentation for more information"
exit
fi
# FUNCTION DEFINITIONS #######################
}
# Update Function
@ -146,6 +146,8 @@ function validate_gs_arguments {
# SCRIPT EXECUTION ###########################
import_gs
echo -e "${CYAN}Validating sync folder configuration${NC}"
validate_gs_folders
validate_ph_folders