From 2132c85a8746fe3285a5b11dfbc3abed43324331 Mon Sep 17 00:00:00 2001 From: Jeppe Frandsen Date: Thu, 30 May 2024 05:10:15 +0000 Subject: [PATCH] Added PATH and safe directory to README --- README.md | 2 ++ install | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f528edc..1b0cf47 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,5 @@ Small script for checking [WebKit Code Style Guidelines](https://webkit.org/code * Install the tool e.g. in a docker container by running `./install` * Install the [cpplint](https://marketplace.visualstudio.com/items?itemName=mine.cpplint) VS Code plugin (can also be added to e.g. `devcontainer.json` for automatic installation) * Configure any options to WebKit's `check-webkit-style` with the `CPPLINT_WEBKIT_ARGS` environment variable +* Make sure that `/usr/local/bin` is in your evironment `PATH` variable +* Run `git config --global --add safe.directory '*'` to make sure the `/usr/share/WebKit` is set to be safe diff --git a/install b/install index 383365f..f32bc7c 100755 --- a/install +++ b/install @@ -1,7 +1,6 @@ #!/bin/sh sudo cp -r WebKit /usr/share -sudo cp check-webkit-style /usr/bin +sudo cp check-webkit-style /usr/local/bin sudo cp cpplint /usr/local/bin sudo git init /usr/share/WebKit -sudo git config --global --add safe.directory /usr/share/WebKit