Skip to content

Commit

Permalink
feat: print time taken for backup
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed Oct 28, 2023
1 parent b0ea1ce commit c3d6c2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,4 +212,5 @@ fi

## Print finish message
echo
success "Backup complete"
SCRIPT_ELAPSED_TIME=$(($SECONDS - $SCRIPT_START_TIME))
success "Backup completed in ${SCRIPT_ELAPSED_TIME}s"
3 changes: 2 additions & 1 deletion src/modules/global.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash


VERSION="0.2.6"
VERSION="0.2.7"


##------------------------------------------------------------------------------


SCRIPT_START_TIME=$SECONDS
SCRIPT_PATH=`dirname "$(readlink -f "$0")"`
SCRIPT_NAME="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"

Expand Down

0 comments on commit c3d6c2e

Please sign in to comment.