1
0
Fork 0
mirror of https://github.com/vinceliuice/WhiteSur-cursors.git synced 2024-10-16 04:10:46 +00:00
This commit is contained in:
vinceliuice 2021-01-06 18:59:12 +08:00
parent 1ada17d4e0
commit 8e68939171
2 changed files with 37 additions and 2 deletions

View file

@ -1,4 +1,39 @@
#!/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 { function create {
cd "$SRC" cd "$SRC"

View file

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