2021-01-06 11:59:12 +01:00
|
|
|
#! /usr/bin/env bash
|
2020-08-12 10:00:07 +02: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
|
|
|
|
|
2022-07-06 16:57:33 +02:00
|
|
|
if [ ! -d "$DEST_DIR" ]; then
|
|
|
|
mkdir -p $DEST_DIR
|
|
|
|
elif [ -d "$DEST_DIR/WhiteSur-cursors" ]; then
|
2020-08-12 10:00:07 +02:00
|
|
|
rm -r "$DEST_DIR/WhiteSur-cursors"
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp -pr dist $DEST_DIR/WhiteSur-cursors
|
|
|
|
|
|
|
|
echo "Finished..."
|
|
|
|
|