This commit is contained in:
Valeria Fadeeva 2023-05-05 11:37:30 +05:00
parent fdc3c8f8fa
commit 5706c81a59
1 changed files with 23 additions and 0 deletions

23
install.sh Executable file
View File

@ -0,0 +1,23 @@
#!/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/plasma/plasmoids"
if [[ ! -d "$THEME_PATH" ]];then
mkdir -p "$THEME_PATH"
fi
THEME_NAME="com.github.adhec.DittoMenu"
rm -rf $THEME_PATH/$THEME_NAME
cp -vrf --remove-destination --no-dereference --preserve=links "$PWD/$THEME_NAME" "$THEME_PATH/"