Shellcheck install.sh

This commit is contained in:
theanonymousexyz 2022-04-27 15:50:13 +02:00
parent a64a55073b
commit 2a5de20641
No known key found for this signature in database
GPG Key ID: 35EE09F5481049BB
1 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,10 @@
#!/usr/bin/env sh
cd -P -- "$(readlink -e "$(dirname "$0")")" || exit 255
echo "=> Checking dependencies..."
command -v stow >/dev/null 2>&1 || { echo "Please install GNU Stow!"; exit 69; }
command -v stow >/dev/null 2>&1 || { echo "Please install GNU Stow!"; exit 1; }
sleep 0.5
echo "=> Determining OS..."
@ -15,14 +17,12 @@ elif [ "$(lsb_release -si)" = "Artix" ]; then
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
else
echo "OS not supported!"
exit 420
exit 2
fi
sleep 0.5
echo "=> Installing dotfile packages..."
cd -P -- "$(readlink -e "$(dirname "$0")")"
for pkg in "$@"; do
sleep 0.1
echo " -> Stowing $pkg"