1
0
Fork 0

code cleanup

master
Pratham Patel 3 months ago
parent ba3b774cb4
commit 92a7b6589c

@ -2,7 +2,7 @@
source /etc/os-release
if [[ ! ${ID} == "debian" ]]
if [ ! ${ID} == "debian" ]
then
echo "This is only tested on Debian. Please use a VM is necessary."
exit 1

@ -4,7 +4,7 @@ set -x
source /etc/os-release
if [[ ! ${ID} == "debian" ]]
if [ ! ${ID} == "debian" ]
then
echo "This is only tested on Debian. Please use a VM is necessary."
exit 1

@ -48,11 +48,11 @@ apt-get install -y ${MY_PKGS[@]}
### Fail outright; don't install; report to the user
for PKG in ${CHK_SYS_PKGS_01[@]}
do
dpkg -s ${PKG} 1>/dev/null || { echo -e "\n[${PKG}}: PACKAGE NOT INSTALLED. THIS SHOULD NOT HAPPEN\n"; exit 1; }
dpkg -s ${PKG} 1>/dev/null || { echo -e "\n[${PKG}]: PACKAGE NOT INSTALLED. THIS SHOULD NOT HAPPEN\n"; exit 1; }
done
for PKG in ${CHK_SYS_PKGS_02[@]}
do
dpkg -s ${PKG} 1>/dev/null || { echo -e "\n[${PKG}}: PACKAGE NOT INSTALLED. THIS SHOULD NOT HAPPEN\n"; exit 1; }
dpkg -s ${PKG} 1>/dev/null || { echo -e "\n[${PKG}]: PACKAGE NOT INSTALLED. THIS SHOULD NOT HAPPEN\n"; exit 1; }
done

Loading…
Cancel
Save