2021-11-30 17:46:31 +00:00
|
|
|
#!/bin/bash
|
2018-12-21 16:38:50 +00:00
|
|
|
|
2021-11-30 17:46:31 +00:00
|
|
|
set -xeuo pipefail
|
2018-12-21 16:38:50 +00:00
|
|
|
|
2020-11-25 21:05:24 +00:00
|
|
|
# Push some git repos
|
2018-12-21 16:38:50 +00:00
|
|
|
pass git push
|
2019-09-24 14:13:41 +00:00
|
|
|
git --git-dir=$HOME/.cfg/ --work-tree=$HOME push
|
2018-12-21 16:38:50 +00:00
|
|
|
|
2020-12-23 08:08:37 +00:00
|
|
|
# Fetch a fresh copy of all locally cloned git repos
|
|
|
|
for dir in $(find /home/kunsi/git -mindepth 1 -maxdepth 1 -type d)
|
|
|
|
do
|
2021-07-09 10:42:32 +00:00
|
|
|
git -C "$dir" fetch || true
|
2020-12-23 08:08:37 +00:00
|
|
|
done
|
|
|
|
|
2020-11-25 21:05:24 +00:00
|
|
|
# Do a backup.
|
2022-02-13 07:47:44 +00:00
|
|
|
sudo /usr/local/bin/generate-backup-with-retries
|
2022-01-15 05:31:29 +00:00
|
|
|
printf '\a'
|
2021-11-30 17:46:31 +00:00
|
|
|
|
2020-11-25 21:05:24 +00:00
|
|
|
# Do updates
|
2022-01-15 05:31:29 +00:00
|
|
|
sudo pacman -Syu
|
2022-03-26 12:29:29 +00:00
|
|
|
sudo DIFFPROG='diff -u --color' pacdiff
|