McMojave-cursors/install.sh
vinceliuice d3a9b60516 update
2021-01-06 19:00:15 +08:00

20 lines
327 B
Bash
Executable file

#! /usr/bin/env bash
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/McMojave-cursors" ]; then
rm -r "$DEST_DIR/McMojave-cursors"
fi
cp -pr dist $DEST_DIR/McMojave-cursors
echo "Finished..."