From 732d5b22af4aa17f456a988017f27587ea8073fd Mon Sep 17 00:00:00 2001 From: 7rikazhexde <7rikaz.h785.stat2ltas41lcijad@gmail.com> Date: Thu, 12 Sep 2024 22:38:31 +0900 Subject: [PATCH] :bookmark:Update version --- pyproject.toml | 2 +- scripts/create_post-commit.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 28dc651..11c5790 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "video-grid-merge" -version = "0.2.24" +version = "0.2.25" description = "This project allows you to use FFmpeg to arrange video files stored in a specified folder in an NxN grid layout and generate the output." authors = ["7rikaz"] readme = "README.md" diff --git a/scripts/create_post-commit.sh b/scripts/create_post-commit.sh index e0699c3..7306c46 100755 --- a/scripts/create_post-commit.sh +++ b/scripts/create_post-commit.sh @@ -6,8 +6,8 @@ create_post_commit() { cat > "$1" << EOF #!/usr/bin/env bash -source "$SCRIPT_DIR/.venv/bin/activate" -poetry run python "$SCRIPT_DIR/ci/run_git_tag_base_pyproject.py" +source "$SCRIPT_DIR/../.venv/bin/activate" +poetry run python "$SCRIPT_DIR/../ci/run_git_tag_base_pyproject.py" if [ \$? -ne 0 ]; then printf "Error occurred in run_git_tag_base_pyproject.py. Exiting post-commit.\n" exit 1 @@ -26,10 +26,10 @@ EOF fi } -if [ -f "$SCRIPT_DIR/.git/hooks/post-commit" ]; then - read -p "$SCRIPT_DIR/.git/hooks/post-commit already exists. Do you want to create $SCRIPT_DIR/.git/hooks/post-commit.second instead? (y/N): " choice +if [ -f "$SCRIPT_DIR/../.git/hooks/post-commit" ]; then + read -p "$SCRIPT_DIR/../.git/hooks/post-commit already exists. Do you want to create $SCRIPT_DIR/.git/hooks/post-commit.second instead? (y/N): " choice if [[ $choice == "y" || $choice == "Y" ]]; then - create_post_commit "$SCRIPT_DIR/.git/hooks/post-commit.second" + create_post_commit "$SCRIPT_DIR/../.git/hooks/post-commit.second" exit 0 else echo "Post-commit script creation canceled." @@ -37,5 +37,5 @@ if [ -f "$SCRIPT_DIR/.git/hooks/post-commit" ]; then fi fi -create_post_commit "$SCRIPT_DIR/.git/hooks/post-commit" "execute" +create_post_commit "$SCRIPT_DIR/../.git/hooks/post-commit" "execute" exit 0