Skip to content

Commit 893292b

Browse files
committed
Install unzip iff it is not on system
1 parent c3128fb commit 893292b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

unit6_fix_sp24.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ if [ "$EUID" -ne 0 ]; then
2929
fi
3030

3131
# Installing unzip to ensure system won't crash
32-
apt install unzip -y
33-
echo "Unzip installed and latest version moving into install script\n"
32+
if ! dpkg -s unzip > /dev/null; then
33+
echo "${red}[UNZIP]${none} Unzip not installed. Installing now..."
34+
apt install unzip -y
35+
echo -e "${green}[UNZIP]${none} Unzip installed."
36+
fi
3437

3538
CATALYST_INSTALL_PATH=/opt/catalyst
3639
mkdir -p $CATALYST_INSTALL_PATH

0 commit comments

Comments
 (0)