mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Extra $s
This commit is contained in:
parent
844c011ee8
commit
0dd22c2966
@ -41,13 +41,13 @@ NC='\033[0m'
|
|||||||
|
|
||||||
# Import Settings
|
# Import Settings
|
||||||
function import_gs {
|
function import_gs {
|
||||||
echo -e "[ ${CYAN}STATUS${NC} ] Importing ${CONFIG_FILE} Settings$"
|
echo -e "[ ${CYAN}STATUS${NC} ] Importing ${CONFIG_FILE} Settings"
|
||||||
if [ -f ~/${LOCAL_FOLDR}/${CONFIG_FILE} ]
|
if [ -f ~/${LOCAL_FOLDR}/${CONFIG_FILE} ]
|
||||||
then
|
then
|
||||||
source ${CONFIG_FILE}
|
source ${CONFIG_FILE}
|
||||||
echo -e "[ ${GREEN}SUCCESS${NC} ] Using ${REMOTE_USER}@${REMOTE_HOST}"
|
echo -e "[ ${GREEN}SUCCESS${NC} ] Using ${REMOTE_USER}@${REMOTE_HOST}"
|
||||||
else
|
else
|
||||||
echo -e "[ ${RED}FAILURE${NC} ] Required ${CONFIG_FILE} Missing!"
|
echo -e "[ ${RED}FAILURE${NC} ] Required ${CONFIG_FILE} Missing"
|
||||||
echo -e "Please review installation documentation for more information"
|
echo -e "Please review installation documentation for more information"
|
||||||
exit_nochange
|
exit_nochange
|
||||||
fi
|
fi
|
||||||
@ -176,7 +176,7 @@ function list_gs_arguments {
|
|||||||
# Exit Codes
|
# Exit Codes
|
||||||
## No Changes Made
|
## No Changes Made
|
||||||
function exit_nochange {
|
function exit_nochange {
|
||||||
echo -e "[ ${CYAN}STATUS${NC} ] Exiting Without Making Changes$"
|
echo -e "[ ${CYAN}STATUS${NC} ] Exiting Without Making Changes"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -240,7 +240,7 @@ case $# in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo -e "[ ${RED}FAILURE${NC} ] ${RED}'$1'${NC} is Invalid Arguments"
|
echo -e "[ ${RED}FAILURE${NC} ] ${RED}'$1'${NC} is Invalid Argument"
|
||||||
list_gs_arguments
|
list_gs_arguments
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user