Skip to content
Snippets Groups Projects
Verified Commit b3244516 authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Don't really want to see the snapshots, just check the lock status

parent 83628bee
No related branches found
No related tags found
No related merge requests found
Pipeline #4096854 passed
...@@ -8,7 +8,7 @@ source common.sh ...@@ -8,7 +8,7 @@ source common.sh
EXCLUDE_LIST=`mktemp` EXCLUDE_LIST=`mktemp`
RESTIC_LOGFILE=`mktemp` RESTIC_LOGFILE=`mktemp`
$RESTIC snapshots $RESTIC snapshots > /dev/null
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
echo "Lock detected, attempting to unlock" | tee -a $RESTIC_LOGFILE echo "Lock detected, attempting to unlock" | tee -a $RESTIC_LOGFILE
$RESTIC unlock 2>&1 | tee -a $RESTIC_LOGFILE $RESTIC unlock 2>&1 | tee -a $RESTIC_LOGFILE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment