fix: added missing dotfiles and removed unnecessary files/packages
This commit is contained in:
+8
-11
@@ -15,21 +15,18 @@ need_cmd git
|
||||
need_cmd curl
|
||||
need_cmd age
|
||||
need_cmd jq
|
||||
need_cmd pacman || need_cmd apt-get
|
||||
need_cmd chezmoi
|
||||
|
||||
if (( ${#missing[@]} > 0 )); then
|
||||
cat <<EOF
|
||||
>>> Missing prerequisites: ${missing[*]}
|
||||
RED=$'\e[31m'
|
||||
RESET=$'\e[0m'
|
||||
|
||||
Install them for your distro, then re-run \`chezmoi apply\`:
|
||||
|
||||
Arch: sudo pacman -S --needed git curl sudo age jq
|
||||
Ubuntu: sudo apt-get install -y git curl sudo age jq
|
||||
|
||||
\`age\` is also available at https://github.com/FiloSottile/age as a static
|
||||
binary if your distro does not package it.
|
||||
EOF
|
||||
printf ">>> Missing prerequisites:\n"
|
||||
for cmd in "${missing[@]}"; do
|
||||
printf "\t%s%s%s\n" "$RED" "$cmd" "$RESET"
|
||||
done
|
||||
printf "\n"
|
||||
echo "Install them, then re-run \`chezmoi apply\`"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user