From 50d5e5743dc94945f32c916ee3b37356d7a6b8af Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 26 May 2018 09:39:24 -0300 Subject: Rename --check to --list --- borger | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'borger') diff --git a/borger b/borger index 5b002b9..881fa03 100755 --- a/borger +++ b/borger @@ -28,7 +28,7 @@ function fatal { } function borger_usage { - echo "usage: $BASENAME [--continuous|--check]" + echo "usage: $BASENAME [--continuous|--list]" echo -n "available destinations from $BASE_CONFIG: " ls $BASE_CONFIG exit 1 @@ -69,8 +69,8 @@ function borger_config { fi } -# Check -function borger_check { +# List +function borger_list { borg list exit $? } @@ -185,7 +185,7 @@ if [ -z "$DESTINATION" ]; then borger_usage elif [ -z "$OPTION" ]; then borger_run -elif [ "$OPTION" == "--check" ]; then +elif [ "$OPTION" == "--list" ]; then borger_config borger_check elif [ "$OPTION" == "--continuous" ]; then -- cgit v1.2.3