mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Check the config not the logs
This commit is contained in:
parent
c789ff5a09
commit
a8ca9b19be
@ -41,10 +41,10 @@ NC='\033[0m'
|
||||
|
||||
# Import Settings
|
||||
function import_gs {
|
||||
echo -e "${CYAN}Importing ${SYNCING_LOG} Settings${NC}"
|
||||
if [ -f ~/${LOCAL_FOLDR}/${SYNCING_LOG} ]
|
||||
echo -e "${CYAN}Importing ${CONFIG_FILE} Settings${NC}"
|
||||
if [ -f ~/${LOCAL_FOLDR}/${CONFIG_FILE} ]
|
||||
then
|
||||
source ${SYNCING_LOG}
|
||||
source ${CONFIG_FILE}
|
||||
echo -e "${GREEN}Success${NC}: Configured for ${REMOTE_USER}@${REMOTE_HOST}"
|
||||
else
|
||||
echo -e "${RED}Failure${NC}: Required file ${SYNCING_LOG} is missing!"
|
||||
|
Loading…
Reference in New Issue
Block a user