From 7ad9b70f0976ec161f51f0b7403c9784336ebab5 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Thu, 21 May 2020 21:07:01 -0500 Subject: [PATCH] Add log tail function --- gravity-sync.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gravity-sync.sh b/gravity-sync.sh index 7815e2a..f875200 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -156,6 +156,12 @@ case $# in done exit ;; + + logs) + + echo -e "${GREEN}Success:${NC} Logs Requested" + echo -e "Showing last three successful execution timestamps" + tail -n 3 ${SYNCING_LOG} *) echo -e "${RED}'$1' is not a valid argument${NC}"