WhiteSur-cursors/install.sh
2020-08-12 16:00:07 +08:00

20 lines
318 B
Bash
Executable file

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