We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 712eba7 commit 01eb483Copy full SHA for 01eb483
1 file changed
snmp/borgbackup
@@ -379,13 +379,12 @@ my $to_return = {
379
errorString => '',
380
};
381
382
-if ( !$update && !$pretty ) {
383
- my $cache_extra = '';
384
- if ($compress) {
385
- $cache_extra = '.snmp';
+if ( !$update ) {
+ if ( $pretty ) {
+ die "Cannot pretty print without -u (update mode)\n";
386
}
387
- if ( -f $output_dir . '/extend_return' . $cache_extra ) {
388
- my $old = read_file( $output_dir . '/extend_return' . $cache_extra );
+ if ( -f $output_dir . '/extend_return' ) {
+ my $old = read_file( $output_dir . '/extend_return' );
389
print $old;
390
exit 0;
391
} else {
0 commit comments