SHELLCHECKER: Added "" into values
This commit is contained in:
parent
d5710350d4
commit
07b1850973
@ -35,9 +35,9 @@ if [ "$agreed" == "y" ] || [ "$agreed" == "Y" ]
|
||||
echo -e "\e[91m----------------------\e[5mSTARTING\e[0m\e[91m------------------------------\e[0m" && sleep 10
|
||||
$NOW > /tmp/compiling-starting
|
||||
NEW_KERNEL="/tmp/new-kernel-config"
|
||||
sudo cp -r $TMP_KERNEL $DEFAULT_KERNEL
|
||||
cd /usr/src/linux; sudo make menuconfig; sleep 2; sudo cp -r $DEFAULT_KERNEL $NEW_KERNEL
|
||||
sudo genkernel all --makeopts=-j$(nproc --all) --kernel-config=$NEW_KERNEL --callback="emerge nvidia-drivers::gentoo" --lvm --btrfs --luks
|
||||
sudo cp -r "$TMP_KERNEL" "$DEFAULT_KERNEL"
|
||||
elif [ "$agreed" == "N" ] || [ "$agreed" == "n" ]
|
||||
then
|
||||
exit
|
||||
@ -77,6 +77,9 @@ ifchecking $INITRANFS
|
||||
ifchecking $SYSTEMMAP
|
||||
ifchecking $VMLINUZ
|
||||
sudo grub-mkconfig -o /boot/grub/grub.cfg
|
||||
ifchecking "$INITRANFS"
|
||||
ifchecking "$SYSTEMMAP"
|
||||
ifchecking "$VMLINUZ"
|
||||
}
|
||||
|
||||
function ifchecking () {
|
||||
@ -89,11 +92,11 @@ fi
|
||||
}
|
||||
|
||||
function addgit() {
|
||||
cd ~/Linux/portage || exit
|
||||
cd "$BACKUP" || exit
|
||||
git add .
|
||||
git commit -m "Updated: $(date)"
|
||||
git push
|
||||
cd ~ || exit
|
||||
cd "$HOME" || exit
|
||||
}
|
||||
|
||||
function main() {
|
||||
|
Loading…
Reference in New Issue
Block a user