1
0
Fork 0
mirror of https://github.com/vinceliuice/WhiteSur-cursors.git synced 2024-11-23 22:30:09 +00:00
WhiteSur-cursors/install.sh

21 lines
327 B
Bash
Raw Normal View History

2021-01-06 10:59:12 +00:00
#! /usr/bin/env bash
2020-08-12 08:00:07 +00:00
ROOT_UID=0
DEST_DIR=
# Destination directory
if [ "$UID" -eq "$ROOT_UID" ]; then
DEST_DIR="/usr/share/icons"
else
DEST_DIR="$HOME/.local/share/icons"
fi
if [ -d "$DEST_DIR/WhiteSur-cursors" ]; then
rm -r "$DEST_DIR/WhiteSur-cursors"
fi
cp -pr dist $DEST_DIR/WhiteSur-cursors
echo "Finished..."