mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Add update function
This commit is contained in:
@ -137,6 +137,13 @@ case $# in
|
|||||||
exit
|
exit
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
update)
|
||||||
|
echo -e "${PURPLE}Info:${NC} Update requested"
|
||||||
|
echo -e "This will fail unless you installed via Git"
|
||||||
|
git pull
|
||||||
|
exit
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
echo -e "${RED}'$1' is not a valid argument${NC}"
|
echo -e "${RED}'$1' is not a valid argument${NC}"
|
||||||
echo "Usage: $0 {pull|push}"
|
echo "Usage: $0 {pull|push}"
|
||||||
|
Reference in New Issue
Block a user