Only do apt-get stuff if it exists. Should probably support some other distros some time.

This commit is contained in:
snare 2016-11-26 11:34:55 +13:00
parent bc7c6ed0d9
commit 7e34087bc0
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
SUDO='sudo'
GDB=$(command -v gdb)
LLDB=$(command -v lldb)
APT_GET=$(command -v apt-get)
set -x
@ -46,7 +47,7 @@ done
set -e
function install_apt {
if uname | grep -i Linux &>/dev/null; then
if [ -n "${APT_GET}" ]; then
if [ -z "${SKIP_UPDATE}" ]; then
sudo apt-get update
fi