move distro/de-specific stuff to its own folder
This commit is contained in:
parent
3110da2e40
commit
6bd1edfd47
5 changed files with 23 additions and 19 deletions
15
run-distro-de-script.sh
Normal file
15
run-distro-de-script.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
command_exists() { type "$1" &>/dev/null; }
|
||||
|
||||
cd distro-specific-scripts/
|
||||
distro=""
|
||||
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"
|
||||
fi
|
||||
|
||||
./${distro}-${XDG_CURRENT_DESKTOP}.sh
|
Loading…
Add table
Add a link
Reference in a new issue