Skip to content

Commit

Permalink
Merge pull request fkie-cad#551 from maringuu/fix_empty_codename
Browse files Browse the repository at this point in the history
pre_install.sh: Check if CODENAME is nonempty
  • Loading branch information
jstucke committed Mar 12, 2021
2 parents e8a341d + 8a6cf08 commit 0e96fd3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/install/pre_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ elif [ "${CODENAME}" = "rebecca" ] || [ "${CODENAME}" = "rafaela" ] || [ "${CODE
sudo apt-get -y install "linux-image-extra-$(uname -r)" linux-image-extra-virtual
elif [ "${CODENAME}" = "kali-rolling" ]; then
CODENAME=buster
elif [ -z "${CODENAME}" ]; then
echo "Could not get Ubuntu codename. Please make sure that lsb-release is installed."
exit 1
fi

echo "Install Pre-Install Requirements"
Expand Down

0 comments on commit 0e96fd3

Please sign in to comment.