You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
771 B
31 lines
771 B
#!/bin/sh
|
|
|
|
main() {
|
|
local SOUNDDIR="$HOME/.local/share/sounds"
|
|
local ICONDIR="$HOME/.local/share/icons"
|
|
local CMDDIR="$HOME/.local/bin/"
|
|
|
|
|
|
if [[ ! -d "./remind" ]]; then
|
|
git clone https://git.lucasf.dev/public/remind > /dev/null 2>&1
|
|
if [[ ! -d "$SOUNDDIR" ]]; then
|
|
mkdir -p "$SOUNDDIR"
|
|
fi
|
|
if [[ ! -d "$ICONDIR" ]]; then
|
|
mkdir -p "$ICONDIR"
|
|
fi
|
|
mv $(pwd)/remind/remind $CMDDIR
|
|
mv $(pwd)/remind/clock.svg $ICONDIR
|
|
mv $(pwd)/remind/beep.mp3 $SOUNDDIR
|
|
rm -rf $(pwd)/remind
|
|
else
|
|
echo -e "\033[31m[error]\nRemove the remind folder first.\n\033[0m"
|
|
exit 1
|
|
fi
|
|
|
|
}
|
|
|
|
main
|
|
if [[ $? -eq 0 ]];then echo "Remind installed"; fi
|
|
|
|
# vim: ft=bash:ts=4:sts=4:sw=4
|
|
|