feat(scripts): have is now x-have script

This commit is contained in:
2023-09-29 14:51:20 +03:00
parent 3d753fe08c
commit 56ae0e1e1c
13 changed files with 23 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ NEOFETCH_URL="${NEOFETCH_REPO}/archive/refs/tags/${NEOFETCH_VERSION}.tar.gz"
NEOFETCH_TEMP="/tmp/neofetch"
NEOFETCH_INSTALL_PREFIX="$HOME/.local"
have neofetch || {
[[ $(x-have "neofetch") == "1" ]] && {
LC_ALL=C
mkdir -p "$NEOFETCH_TEMP" "$NEOFETCH_INSTALL_PREFIX"