2024-07-10 14:38:12 -05:00
|
|
|
#!/usr/bin/env bash
|
2024-12-19 23:14:55 -06:00
|
|
|
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
2024-07-10 14:38:12 -05:00
|
|
|
|
|
|
|
command_exists() { type "$1" &>/dev/null; }
|
|
|
|
|
2024-12-19 23:14:55 -06:00
|
|
|
cd $GIT_DIR/distro-specific-scripts/
|
2024-07-10 14:38:12 -05:00
|
|
|
distro=""
|
2024-09-27 09:39:04 -05:00
|
|
|
|
2024-07-10 14:38:12 -05:00
|
|
|
if command_exists "pacman"; then
|
|
|
|
distro="arch"
|
|
|
|
elif command_exists "dnf" || command_exists "rpm-ostree"; then
|
|
|
|
distro="fedora"
|
|
|
|
elif command_exists "xbps-install"; then
|
|
|
|
distro="void"
|
2024-09-27 09:39:04 -05:00
|
|
|
else
|
|
|
|
exit
|
2024-07-10 14:38:12 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
./${distro}-${XDG_CURRENT_DESKTOP}.sh
|