From aba0e56f3fd60f561dd45f92edb52257e53ecb1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Recai=20Okta=C5=9F?= Date: Sun, 15 Oct 2023 19:52:23 +0300 Subject: [PATCH] . --- .github/workflows/lint.yml | 12 ++++++++++++ scripts/terminal/nvim.sh | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..0b91f5d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,12 @@ +name: Lint +on: [push, pull_request, workflow_dispatch] +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Install 🥁 + run: sudo apt-get -y update && sudo apt-get -y install shellcheck + - name: Checkout 🛎️ + uses: actions/checkout@v4 + - name: Lint 🔬 + run: shellcheck $(find . -name '*.sh') diff --git a/scripts/terminal/nvim.sh b/scripts/terminal/nvim.sh index aa6656e..7bf3928 100644 --- a/scripts/terminal/nvim.sh +++ b/scripts/terminal/nvim.sh @@ -18,5 +18,6 @@ apt-get -y update && apt-get -y install --no-install-recommends \ neovim \ # -update-alternatives --install /usr/bin/editor editor $(which nvim) 60 -update-alternatives --set editor $(which nvim) +nvim=$(command -v nvim) +update-alternatives --install /usr/bin/editor editor "$nvim" 60 +update-alternatives --set editor "$nvim"