Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

refactor(tools/install.sh): remove declare bashisms, set to executable #434

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Some of the defining features that make this project unique are:
### Mac OS / Linux

```bash
curl -s https://raw.githubusercontent.com/doom-neovim/doom-nvim/main/tools/install.sh | sh
curl -s https://raw.githubusercontent.com/doom-neovim/doom-nvim/main/tools/install.sh && ./install.sh
```

### Manual (Mac OS / Linux)
Expand Down
14 changes: 7 additions & 7 deletions tools/install.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/env bash

declare -r XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME/.local/share"}"
declare -r XDG_CACHE_HOME="${XDG_CACHE_HOME:-"$HOME/.cache"}"
declare -r XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME/.config"}"
typeset -r XDG_DATA_HOME="${XDG_DATA_HOME:-"$HOME/.local/share"}"
typeset -r XDG_CACHE_HOME="${XDG_CACHE_HOME:-"$HOME/.cache"}"
typeset -r XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-"$HOME/.config"}"

DOOM_REPO_URL="https://github.com/doom-neovim/doom-nvim"
declare -r DOOM_CONFIG_DIR="${DOOM_CONFIG_DIR:-"$XDG_CONFIG_HOME/nvim"}"
typeset -r DOOM_CONFIG_DIR="${DOOM_CONFIG_DIR:-"$XDG_CONFIG_HOME/nvim"}"

declare BASEDIR
typeset BASEDIR
BASEDIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
BASEDIR="$(dirname -- "$(dirname -- "$BASEDIR")")"
readonly BASEDIR
Expand All @@ -26,8 +26,8 @@ function help() {
echo " -y, --yes Skip all prompts"
}

declare -a system_dependencies=("nvim" "git" "node" "npm" "fd;optional" "rg;optional" "wget;optional" "unzip;optional")
declare -a npm_dependencies=("tree-sitter")
typeset -a system_dependencies=("nvim" "git" "node" "npm" "fd;optional" "rg;optional" "wget;optional" "unzip;optional")
typeset -a npm_dependencies=("tree-sitter")

function banner() {
echo " "
Expand Down