From aa35e8dab7ac382b862f174ad364aa83a6f8b05a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 29 Oct 2024 21:29:02 +0000 Subject: Fix handling of quicknotes clear and post script --- clear_and_post_quicknote.pl | 8 ++++---- 1 file 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!"; -- cgit v1.2.3