Added more permission copy and sleep in the Update-kernel

This commit is contained in:
Marcin Woźniak 2021-08-08 17:43:27 +02:00
parent 52b351f9c6
commit b607bafe8f
Signed by: y0rune
GPG Key ID: F204C385F57EB348

View File

@ -9,7 +9,7 @@ function starting() {
echo -e "\e[93m----------------------COMPILING------------------------------\e[0m" echo -e "\e[93m----------------------COMPILING------------------------------\e[0m"
sudo cp -rv "$DEFAULT_KERNEL" "$TMP_KERNEL" sudo cp -rv "$DEFAULT_KERNEL" "$TMP_KERNEL"
cp -r "$TMP_KERNEL" "$BACKUP/kernel-config" cp -r "$TMP_KERNEL" "$BACKUP/kernel-config"
cp -r /etc/portage/* $BACKUP sudo cp -r /etc/portage/* $BACKUP
qlist -I | sort -u > $BACKUP/list-of-programs qlist -I | sort -u > $BACKUP/list-of-programs
} }
@ -96,6 +96,7 @@ fi
function addgit() { function addgit() {
cd "$BACKUP" || exit cd "$BACKUP" || exit
sleep 20
git add . git add .
git commit -m "Updated: $(date)" git commit -m "Updated: $(date)"
git push git push