-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackup.sh
More file actions
executable file
·29 lines (23 loc) · 1.22 KB
/
backup.sh
File metadata and controls
executable file
·29 lines (23 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
# ToppDev's Artix/Arch Linux Installation Scripts (TALIS)
# by Thomas Topp <dev@topp.cc>
# License: GNU GPLv3
# ########################################################################################################## #
# Helper scripts #
# ########################################################################################################## #
export scriptdir="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
source "$scriptdir/helper/color.sh"
source "$scriptdir/helper/log.sh"
source "$scriptdir/helper/user.sh"
source "$scriptdir/helper/install.sh"
source "$scriptdir/helper/checkArchRootInternet.sh"
# ########################################################################################################## #
# Check Arch distro #
# ########################################################################################################## #
check_arch_internet
for package in $scriptdir/packages/*; do
if [ -f "$package/hooks/backup.sh" ]; then
echo " Backing up \`${package##*/}\`"
sh "$package/hooks/backup.sh"
fi
done