Skip to content

Commit

Permalink
Merge pull request djmaze#101 from djmaze/fix-prune-without-forget
Browse files Browse the repository at this point in the history
Allow running prune without forget (args)
  • Loading branch information
djmaze committed Sep 20, 2021
2 parents dd78cf2 + 4881438 commit c896553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prune
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ main() {

start=$(date +%s)

if [ -n "${RESTIC_FORGET_ARGS}" ]; then
if [ -n "${RESTIC_FORGET_ARGS:-}" ]; then
echo Forget about old snapshots based on RESTIC_FORGET_ARGS = ${RESTIC_FORGET_ARGS}
restic forget ${RESTIC_FORGET_ARGS}
fi
Expand Down

0 comments on commit c896553

Please sign in to comment.