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