I'm currently working on a project and currently have this code. I already improved it by having some pointers, but I want to make it more professional looking and right. What should I implement next?
installation() {
echo '------------------------------------'>&2
echo 'Installing Dependensies'>&2
echo '------------------------------------'>&2
echo "">&2
echo 'Installing pkgconf ..'>&2
apt install pkgconf
echo '------------------------------------'>&2
echo 'Installing libvte-2.91-dev ..'>&2
apt install libvte-2.91-dev
echo '------------------------------------'>&2
echo 'Installing meson ..'>&2
apt install meson
echo '------------------------------------'>&2
echo 'Installing libcairo2-dev ..'
apt install libcairo2-dev
echo '------------------------------------'>&2
echo 'Installing libpango1.0-dev ..'>&2
apt install libpango1.0-dev
echo '------------------------------------'>&2
echo 'Installing libgnutls28-dev ..'>&2
apt install libgnutls28-dev
echo '------------------------------------'>&2
echo 'Installing libgtk-3-dev ..'>&2
apt install build-essential libgtk-3-dev
echo '------------------------------------'>&2
echo 'Installing libsystemd-dev ..'>&2
apt install libsystemd-dev
echo '------------------------------------'>&2
echo 'Installing libgirepository1.0-dev ..'>&2
apt install libgirepository1.0-dev
echo '------------------------------------'>&2
echo 'Installing valac ..'>&2
apt install valac
echo '------------------------------------'>&2
echo 'Finished Installing the Dependensies'>&2
echo '------------------------------------'>&2
echo 'Cloning https://gitlab.gnome.org/GNOME/vte.git/'>&2
git clone https://gitlab.gnome.org/GNOME/vte.git/
echo 'Entering vte directory'>&2
cd vte
echo 'Building VTE'>&2
meson _build
ninja -C _build
ninja -C _build install
echo 'Done'>&2
}
installation
Any recommendations are welcome. It's pretty simple, all it does is install different dependencies.
apt install
will already contain that information? I ask this because I find trying to read logs full of repeated information quite frustrating. Although I do think theecho '-------'
between stages very useful. \$\endgroup\$