melawy-sddm-theme-fenek/install.sh

24 lines
395 B
Bash
Raw Normal View History

2023-05-06 21:34:15 +05:00
#!/bin/bash
if [[ "$UID" != 0 ]]; then
echo "USER NOT ROOT"
sudo $0
exit
else
echo "USER IS ROOT"
fi
PWD=$(dirname $0)
THEME_PATH="/usr/share/sddm/themes"
if [[ ! -d "$THEME_PATH" ]];then
mkdir -p "$THEME_PATH"
fi
THEME_NAME="Melawy-Fenek"
rm -rf $THEME_PATH/$THEME_NAME
cp -vrf --remove-destination --no-dereference --preserve=links "$PWD/$THEME_NAME" "$THEME_PATH/"