Skip to content

Commit

Permalink
Merge pull request #3 from ironcamel/no-sync-on-init
Browse files Browse the repository at this point in the history
Don't sync on init.
  • Loading branch information
throughnothing committed May 1, 2012
2 parents 16d66c4 + 1ebf487 commit b77f079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/notes
Expand Up @@ -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;
Expand Down

0 comments on commit b77f079

Please sign in to comment.