This commit is contained in:
vinceliuice 2021-01-06 19:00:15 +08:00
parent bffc4eb608
commit d3a9b60516
2 changed files with 38 additions and 2 deletions

View file

@ -1,4 +1,40 @@
#!/bin/bash
#! /usr/bin/env bash
# check command avalibility
has_command() {
"$1" -v $1 > /dev/null 2>&1
}
if [ ! "$(which xcursorgen 2> /dev/null)" ]; then
echo xorg-xcursorgen needs to be installed to generate the cursors.
if has_command zypper; then
sudo zypper in xorg-xcursorgen
elif has_command apt; then
sudo apt install xorg-xcursorgen
elif has_command dnf; then
sudo dnf install -y xorg-xcursorgen
elif has_command dnf; then
sudo dnf install xorg-xcursorgen
elif has_command pacman; then
sudo pacman -S --noconfirm xorg-xcursorgen
fi
fi
if [ ! "$(which inkscape 2> /dev/null)" ]; then
echo xorg-xcursorgen needs to be installed to generate the cursors.
if has_command zypper; then
sudo zypper in inkscape
elif has_command apt; then
sudo apt install inkscape
elif has_command dnf; then
sudo dnf install -y inkscape
elif has_command dnf; then
sudo dnf install inkscape
elif has_command pacman; then
sudo pacman -S --noconfirm inkscape
fi
fi
function create {
cd "$SRC"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
ROOT_UID=0
DEST_DIR=