Compare commits

..

No commits in common. "6cddb84903ef28ca4e072557321be07260bc043d" and "06f2f570f7409b38d39418bbe7f2dd4ac0ef283c" have entirely different histories.

2 changed files with 11 additions and 3 deletions

11
create-cron-job.sh Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
(
crontab -l 2>/dev/null
echo "* * * * * $GIT_DIR/commit.sh"
) | crontab -
############################################################################
# NOTE: commit signing must be turned off, or not require any interaction. #
############################################################################

View file

@ -4,15 +4,12 @@ command_exists() { type "$1" &>/dev/null; }
cd distro-specific-scripts/ cd distro-specific-scripts/
distro="" distro=""
if command_exists "pacman"; then if command_exists "pacman"; then
distro="arch" distro="arch"
elif command_exists "dnf" || command_exists "rpm-ostree"; then elif command_exists "dnf" || command_exists "rpm-ostree"; then
distro="fedora" distro="fedora"
elif command_exists "xbps-install"; then elif command_exists "xbps-install"; then
distro="void" distro="void"
else
exit
fi fi
./${distro}-${XDG_CURRENT_DESKTOP}.sh ./${distro}-${XDG_CURRENT_DESKTOP}.sh