@eshanized: push via push.sh!!!

This commit is contained in:
2024-03-07 12:06:16 +05:30
parent 4eadc8432c
commit 418ec1ee17

View File

@@ -38,20 +38,16 @@ function check_file() {
check_connectivity check_connectivity
check_file check_file
# pacman config + online
if [ $Online -eq 1 ] ; then if [ $Online -eq 1 ] ; then
echo "Downloading Default Grub..." echo "Downloading Default Grub..."
sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-arctic/master/archiso/airootfs/etc/default/grub -O $workdir/etc/default/grub sudo wget https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-arctic/master/archiso/airootfs/etc/default/grub -O $workdir/etc/default/grub
fi fi
# pacman config + not online
if [ $Online -eq 0 ] && [ $file_boolean -eq 1 ] ; then if [ $Online -eq 0 ] && [ $file_boolean -eq 1 ] ; then
sudo cp /usr/local/share/snigdhaos/grub/grub /etc/default/grub sudo cp /usr/local/share/snigdhaos/grub/grub /etc/default/grub
echo "Copied Grub Locally!" echo "Copied Grub Locally!"
fi fi
#putting old pacman config back
if [ $Online -eq 0 ] && [ $file_boolean -eq 0 ] ; then if [ $Online -eq 0 ] && [ $file_boolean -eq 0 ] ; then
echo "Run this script once you are back online" echo "Run this script once you are back online"
fi fi