File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import * as hex from "https://deno.land/std@0.219.1/encoding/hex.ts" ;
4
4
import * as fs from "https://deno.land/std@0.219.1/fs/mod.ts" ;
5
+ import * as path from "https://deno.land/std@0.219.1/path/mod.ts" ;
5
6
import {
6
7
ArgumentValue ,
7
8
Command ,
@@ -120,7 +121,7 @@ const cli = new Command()
120
121
Deno . exit ( 1 ) ;
121
122
}
122
123
123
- if ( verbose ) print ( resp . stderr ) ;
124
+ if ( verbose ) console . log ( `created repo at ${ path . resolve ( repo ) } ` ) ;
124
125
}
125
126
126
127
const bytes = new Uint8Array ( 6 ) ;
@@ -140,7 +141,10 @@ const cli = new Command()
140
141
Deno . exit ( 1 ) ;
141
142
}
142
143
143
- if ( verbose ) print ( resp . stderr ) ;
144
+ if ( verbose ) {
145
+ console . log ( "backup info" ) ;
146
+ print ( resp . stderr ) ;
147
+ }
144
148
145
149
if ( prune ) {
146
150
const resp = await borg (
@@ -158,7 +162,10 @@ const cli = new Command()
158
162
Deno . exit ( 1 ) ;
159
163
}
160
164
161
- if ( verbose ) print ( resp . stderr ) ;
165
+ if ( verbose ) {
166
+ console . log ( "prune info" ) ;
167
+ print ( resp . stderr ) ;
168
+ }
162
169
163
170
// TODO: Detect borg 1.2.x and compact
164
171
}
You can’t perform that action at this time.
0 commit comments