Skip to content

Commit

Permalink
Removed un-necessary new "\n"s
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrossrtx authored Jul 6, 2021
1 parent 5425dc3 commit f08802c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions install-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ iso_dir="${build_dir}/iso";
clean()
{
echo "${build_dir}/ already exists:"
echo " rm -rf ${build_dir}\n";
echo " rm -rf ${build_dir}";
rm -rf $build_dir;
}

Expand All @@ -52,7 +52,7 @@ sudo apt-get -y --no-install-recommends install binutils gcc
echo "Installing QEMU & GRUB & xorriso:";
echo " apt-get install qemu qemu-system-x86";
echo " apt-get install grub-common";
echo " apt-get install xorriso\n";
echo " apt-get install xorriso";
sudo apt-get -y --no-install-recommends install qemu-system-x86 grub-common xorriso;

sleep 0.5; # suspense...
Expand All @@ -66,7 +66,7 @@ echo " ${grub_dir}: 📁";
sleep 0.5; # suspense...
echo " ${obj_dir}: 📁";
sleep 0.5; # suspense...
echo " ${iso_dir}: 📁\n";
echo " ${iso_dir}: 📁";

# Create the build directories
mkdir $build_dir;
Expand All @@ -82,15 +82,15 @@ sleep 0.5; # suspense...
# Compile ${kernel_dir}/kernel.c file
echo "Compiling ./${kernel_dir}/kernel.c:";
echo " gcc -m32 -c ${kernel_dir}/kernel.c -o ${obj_dir}/kernel.o \\";
echo " -std=gnu99 -ffreestanding -O2 -Wall -Wextra -I ${include_dir}\n";
echo " -std=gnu99 -ffreestanding -O2 -Wall -Wextra -I ${include_dir}";
gcc -m32 -c ${kernel_dir}/kernel.c -o ${obj_dir}/kernel.o \
-std=gnu99 -ffreestanding -O2 -Wall -Wextra -I $include_dir;

sleep 0.5; # suspense...
# Linking the kernel with ${obj_dir}/kernel.o and ${obj_dir}/boot.o files
echo "Linking kernel:";
echo " ld -m elf_i386 -T linker.ld ${obj_dir}/kernel.o ${obj_dir}/boot.o \\";
echo " -o ${boot_dir}/TinyKernel.bin\n";
echo " -o ${boot_dir}/TinyKernel.bin";
ld -m elf_i386 -T linker.ld ${obj_dir}/kernel.o ${obj_dir}/boot.o \
-o ${boot_dir}/TinyKernel.bin;

Expand Down Expand Up @@ -118,6 +118,6 @@ while true; do
case $yn in
[Yy]* ) qemu-system-x86_64 -cdrom ${iso_dir}/${iso_name}; break;;
[Nn]* ) exit;;
* ) echo "\nPlease enter <Y/n>";;
* ) echo "Please enter <Y/n>";;
esac
done

0 comments on commit f08802c

Please sign in to comment.