#!/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