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
|
# Import Settings
|
||||||
function import_gs {
|
function import_gs {
|
||||||
echo -e "${CYAN}Importing ${SYNCING_LOG} Settings${NC}"
|
echo -e "${CYAN}Importing ${CONFIG_FILE} Settings${NC}"
|
||||||
if [ -f ~/${LOCAL_FOLDR}/${SYNCING_LOG} ]
|
if [ -f ~/${LOCAL_FOLDR}/${CONFIG_FILE} ]
|
||||||
then
|
then
|
||||||
source ${SYNCING_LOG}
|
source ${CONFIG_FILE}
|
||||||
echo -e "${GREEN}Success${NC}: Configured for ${REMOTE_USER}@${REMOTE_HOST}"
|
echo -e "${GREEN}Success${NC}: Configured for ${REMOTE_USER}@${REMOTE_HOST}"
|
||||||
else
|
else
|
||||||
echo -e "${RED}Failure${NC}: Required file ${SYNCING_LOG} is missing!"
|
echo -e "${RED}Failure${NC}: Required file ${SYNCING_LOG} is missing!"
|
||||||
|
Loading…
Reference in New Issue
Block a user