Skip to content

Commit

Permalink
Add kali supports
Browse files Browse the repository at this point in the history
  • Loading branch information
cdo-defcon committed Mar 28, 2018
1 parent ea2831d commit f99f551
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion atomshields/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class CommandHelper(object):
OS_DEBIAN = "Debian"
OS_CENTOS = "CentOS"
OS_REDHAT = "Redhat"
OS_KALI = "Kali"

OS_LINUX = "Linux"
OS_MAC = "Darwin"
Expand Down Expand Up @@ -128,7 +129,7 @@ def install(self, software, uninstall = False):
elif osname == self.__class__.OS_MAC:
command = "brew -y {action} {name}".format(action=action, name=software)
# raise Exception("MacOS installs are not supported yet")
elif osname in [self.__class__.OS_UBUNTU, self.__class__.OS_DEBIAN]:
elif osname in [self.__class__.OS_UBUNTU, self.__class__.OS_DEBIAN, self.__class__.OS_KALI]:
command = "apt-get -y {action} {name}".format(action=action, name=software)
elif osname in [self.__class__.OS_CENTOS, self.__class__.OS_REDHAT]:
command = "yum -y {action} {name}".format(action=action, name=software)
Expand Down

0 comments on commit f99f551

Please sign in to comment.