Browse files

Merge pull request #3 from ironcamel/no-sync-on-init

Don't sync on init.
  • Loading branch information...
2 parents 16d66c4 + 1ebf487 commit b77f0792c25eb5e1d59491c07990dc92b4f77ad9 @throughnothing committed Apr 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 bin/notes
View
4 bin/notes
@@ -39,14 +39,14 @@ sub pre_process {
}
}
- return if not $c->is_command($cmd) or $cmd ~~ [qw( help sync )];
+ return if not $c->is_command($cmd) or $cmd ~~ [qw( help init sync )];
sync( $c, pull_only => 1 ) if auto_sync();
}
sub post_process {
my ( $c ) = @_;
my $cmd = $c->cmd;
- if( $c->is_command($cmd) and not $cmd ~~ [qw( help list show sync )] ) {
+ if($c->is_command($cmd) and not $cmd ~~ [qw( help init list show sync )]) {
sync( $c, push_only => 1 ) if auto_sync();
}
say $c->output if $c->output;

0 comments on commit b77f079

Please sign in to comment.