diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-29 21:29:02 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-29 21:29:02 +0000 |
commit | aa35e8dab7ac382b862f174ad364aa83a6f8b05a (patch) | |
tree | d7c320cb2526ad6f676e4042e9d782c3d0d254e9 | |
parent | 2bf6237c550a2f8747b0377050de8fdafd8608fa (diff) |
-rwxr-xr-x | clear_and_post_quicknote.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clear_and_post_quicknote.pl b/clear_and_post_quicknote.pl index 7934ecf..52b56a5 100755 --- a/clear_and_post_quicknote.pl +++ b/clear_and_post_quicknote.pl @@ -21,7 +21,7 @@ sub get_quicknotes { my @quicknotes; open my $fh, "<", $quicknote_file or die "Cannot open quicknote.md file"; while (<$fh>) { - if ($_ =~ /^- (.*)$/) { + if ($_ =~ /^- (.*)$/ || $_ =~ /(\[.*)$/) { push @quicknotes => "- $1\n"; } } @@ -66,10 +66,10 @@ my @gitaddcmd = ("git add -A"); my @gitcommitcmd = ("git commit -m 'update'"); my @gitpushcmd = ("git push"); my @pushcmd = ("make push"); +# system(@gitaddcmd) or die "Cannot do git add $?"; +# system(@gitcommitcmd) or die "Cannot do git commit: $?"; system(@pushcmd) or die "Cannot push the file to the remote: $?"; -system(@gitaddcmd) or die "Cannot do git add $?"; -system(@gitcommitcmd) or die "Cannot do git commit: $?"; -system(@gitpushcmd) or die "Cannot do git push: $?"; +# system(@gitpushcmd) or die "Cannot do git push: $?"; say "Done!"; |