Compare commits
2 commits
06f2f570f7
...
6cddb84903
Author | SHA1 | Date | |
---|---|---|---|
|
6cddb84903 | ||
|
a3aacb7415 |
2 changed files with 3 additions and 11 deletions
|
@ -1,11 +0,0 @@
|
||||||
#!/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. #
|
|
||||||
############################################################################
|
|
|
@ -4,12 +4,15 @@ 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
|
||||||
|
|
Loading…
Reference in a new issue