From 2c864f1febc3795e5b642e5aed31dc323d0232a4 Mon Sep 17 00:00:00 2001 From: Laan Tungir Date: Sun, 10 Aug 2025 13:35:54 -0400 Subject: [PATCH] build update --- build.sh | 13 +++++++++++++ otp.c | 5 ----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index d8c4d68..39b72d6 100755 --- a/build.sh +++ b/build.sh @@ -98,6 +98,19 @@ increment_version() { # Create new git tag if git tag "$NEW_VERSION" 2>/dev/null; then print_success "Created new version tag: $NEW_VERSION" + + # Push changes and tags to remote repository + if git push ssh://ubuntu@laantungir.net:/home/ubuntu/git_repos/otp 2>/dev/null; then + print_success "Pushed changes to remote repository" + else + print_warning "Failed to push changes to remote repository" + fi + + if git push ssh://ubuntu@laantungir.net:/home/ubuntu/git_repos/otp --tags 2>/dev/null; then + print_success "Pushed tags to remote repository" + else + print_warning "Failed to push tags to remote repository" + fi else print_warning "Tag $NEW_VERSION already exists - using existing version" NEW_VERSION=$LATEST_TAG diff --git a/otp.c b/otp.c index ed1a5b5..deb8134 100644 --- a/otp.c +++ b/otp.c @@ -1042,11 +1042,6 @@ int decrypt_text(const char* pad_identifier, const char* encrypted_message) { } } - if (!found_begin) { - printf("Error: Invalid message format - missing BEGIN header\n"); - return 1; - } - // Now we have the pad chksum from the message, construct filename char pad_path[MAX_HASH_LENGTH + 20]; char state_path[MAX_HASH_LENGTH + 20];