From 0a17a41780dcf16d135f0c2b1e4413f39cb34fa7 Mon Sep 17 00:00:00 2001 From: "uni@bor.mac" Date: Tue, 10 Jun 2025 18:33:40 +0200 Subject: [PATCH] add git as dependency --- README.md | 8 +++++--- install.sh | 5 +++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 95bb4fd..cab67a2 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,14 @@ CLI script to rearrange pdf pages for printing book signatures and foldable zine ## Install pdf2book in Linux or macOS ### Dependencies: -- [`bash`](https://www.gnu.org/software/bash/) (mostly already installed) +- [`bash`](https://www.gnu.org/software/bash/) (mostly already pre-installed) - check with `bash --version` -- [`python3`](https://www.python.org/downloads/) (mostly already installed) +- [`python3`](https://www.python.org/downloads/) (mostly already pre-installed) - check with `python3 --version` -- [`venv`](https://docs.python.org/3/library/venv.html) (might be installed) +- [`venv`](https://docs.python.org/3/library/venv.html) (might be pre-installed) - check with `python3 -m venv --help` +- [`git`](https://git-scm.com/downloads)(might be pre-installed) + - check with `git --version` ### Installation script use the installation script diff --git a/install.sh b/install.sh index 2604259..8006928 100755 --- a/install.sh +++ b/install.sh @@ -5,12 +5,13 @@ # - python3: check with `python3 --version` #- venv: check with `python3 -m venv --help` # -# check dependencies set -e +# check dependencies +# if not available print error msg bash --version > /dev/null python3 --version > /dev/null python3 -m venv --help > /dev/null -set +e +git --version > /dev/null # PREFIX="$HOME/.local" HELP="""