Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eugulixes committed Apr 6, 2019
1 parent ea6cb6d commit 0f2dcf1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/12-pm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if is_alpine; then
# By default /etc/apt/sources.list uses only the main section of the archive.
# However, the ENABLE_NONFREE and ENABLE_UNIVERSE environment variables can
# change the situation.
elif is_raspbian || is_devuan; then
elif is_kali || is_raspbian || is_devuan; then
if ${ENABLE_NONFREE}; then
additional_sections=" contrib non-free"
fi
Expand Down
15 changes: 15 additions & 0 deletions helpers/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,21 @@ is_devuan() {
fi
}

# Checks if the specified OS is Kali.
# Globals:
# PIECES
# Arguments:
# None
# Returns:
# Boolean
is_kali() {
if [ "${PIECES[0]}" = "kali" ]; then
true
else
false
fi
}

# Checks if the specified OS is Raspbian.
# Globals:
# PIECES
Expand Down

0 comments on commit 0f2dcf1

Please sign in to comment.