mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Show version function
This commit is contained in:
parent
8965fadcc7
commit
9a5b9ef353
@ -266,9 +266,14 @@ function error_validate {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Output Version
|
||||||
|
function show_version {
|
||||||
|
echo -e "${INFO} ${PROGRAM} ${VERSION}"
|
||||||
|
}
|
||||||
|
|
||||||
# SCRIPT EXECUTION ###########################
|
# SCRIPT EXECUTION ###########################
|
||||||
|
|
||||||
echo -e "${INFO} ${PROGRAM} ${VERSION}"
|
show_version
|
||||||
|
|
||||||
MESSAGE="Evaluating Script Arguments"
|
MESSAGE="Evaluating Script Arguments"
|
||||||
echo -e "${STAT} ${MESSAGE}"
|
echo -e "${STAT} ${MESSAGE}"
|
||||||
@ -310,7 +315,7 @@ case $# in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
version)
|
version)
|
||||||
echo -e "[ ${PURPLE}INFO${NC} ] Gravity Sync ${VERSION}"
|
show_version
|
||||||
exit_nochange
|
exit_nochange
|
||||||
;;
|
;;
|
||||||
|
|
||||||
@ -336,7 +341,8 @@ case $# in
|
|||||||
then
|
then
|
||||||
if [ -s ${CRONPATH} ]
|
if [ -s ${CRONPATH} ]
|
||||||
echo -e "${GOOD} ${MESSAGE}"
|
echo -e "${GOOD} ${MESSAGE}"
|
||||||
logs_crontab
|
logs_crontab
|
||||||
|
exit_nochange
|
||||||
then
|
then
|
||||||
echo -e "${FAIL} ${MESSAGE}"
|
echo -e "${FAIL} ${MESSAGE}"
|
||||||
echo -e "${YELLOW}${CRONPATH}${NC} appears empty"
|
echo -e "${YELLOW}${CRONPATH}${NC} appears empty"
|
||||||
@ -348,7 +354,6 @@ case $# in
|
|||||||
exit_nochange
|
exit_nochange
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit_nochange
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user