mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Added version output
This commit is contained in:
parent
d80cf2cb9c
commit
b4007f89dc
@ -32,11 +32,11 @@ NC='\033[0m'
|
||||
##############################################
|
||||
|
||||
# IMPORT SETTINGS
|
||||
echo -e "${CYAN}Importing gravity-sync.conf settings${NC}"
|
||||
if [ -f ~/${LOCAL_FOLDR}/gravity-sync.conf ]
|
||||
then
|
||||
echo -e "${GREEN}Success${NC}: Importing gravity-sync.conf settings"
|
||||
source gravity-sync.conf
|
||||
echo -e "Configured for ${REMOTE_USER}@${REMOTE_HOST}"
|
||||
source gravity-sync.conf
|
||||
echo -e "${GREEN}Success${NC}: Configured for ${REMOTE_USER}@${REMOTE_HOST}"
|
||||
else
|
||||
echo -e "${RED}Failure${NC}: Required file gravity-sync.conf is missing!"
|
||||
echo -e "Please review installation documentation for more information"
|
||||
@ -100,6 +100,7 @@ case $# in
|
||||
mv -v ~/${LOCAL_FOLDR}/${GRAVITY_FI} ~/${LOCAL_FOLDR}/${GRAVITY_FI}.last
|
||||
date >> ~/${LOCAL_FOLDR}/${SYNCING_LOG}
|
||||
echo -e "${GREEN}gravity.db pull completed${NC}"
|
||||
exit
|
||||
;;
|
||||
|
||||
push)
|
||||
@ -129,6 +130,11 @@ case $# in
|
||||
esac
|
||||
done
|
||||
;;
|
||||
|
||||
version)
|
||||
echo -e "Gravity Sync ${VERSION}"
|
||||
exit
|
||||
;;
|
||||
|
||||
*)
|
||||
echo -e "${RED}'$1' is not a valid argument${NC}"
|
||||
|
Loading…
Reference in New Issue
Block a user