Shellcheck install.sh
This commit is contained in:
parent
a64a55073b
commit
2a5de20641
|
@ -1,8 +1,10 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
cd -P -- "$(readlink -e "$(dirname "$0")")" || exit 255
|
||||||
|
|
||||||
echo "=> Checking dependencies..."
|
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
|
sleep 0.5
|
||||||
echo "=> Determining OS..."
|
echo "=> Determining OS..."
|
||||||
|
@ -15,14 +17,12 @@ elif [ "$(lsb_release -si)" = "Artix" ]; then
|
||||||
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
|
set -- "alacritty" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
|
||||||
else
|
else
|
||||||
echo "OS not supported!"
|
echo "OS not supported!"
|
||||||
exit 420
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
echo "=> Installing dotfile packages..."
|
echo "=> Installing dotfile packages..."
|
||||||
|
|
||||||
cd -P -- "$(readlink -e "$(dirname "$0")")"
|
|
||||||
|
|
||||||
for pkg in "$@"; do
|
for pkg in "$@"; do
|
||||||
sleep 0.1
|
sleep 0.1
|
||||||
echo " -> Stowing $pkg"
|
echo " -> Stowing $pkg"
|
||||||
|
|
Loading…
Reference in a new issue