Skip to content

Commit

Permalink
Add sec installs list
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmercer committed Oct 21, 2023
1 parent 7a36316 commit f247c0c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
23 changes: 14 additions & 9 deletions .chezmoiscripts/linux/run_onchange_before_10_installs.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ sudo apt update

packages=(
"bat"
"expect" # needed to set shell on Parrot
"fzf"
"gh"
"git"
Expand All @@ -34,6 +35,17 @@ packages=(
"wget"
)

# security only packages
# this separate list helps with Github CI to pass
{{ if or (eq .osid "linux-kali") (eq .osid "linux-parrot") }}

sec_packages=(
"seclists"
)
packages+=("${sec_packages[@]}")

{{ end }}

# Loop through the array and install each package
for package in "${packages[@]}"; do
echo "Installing $package..."
Expand Down Expand Up @@ -67,17 +79,10 @@ tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
rm -rf "$HOME"/lazygit*

# Parrot install list
{{ if eq .osid "linux-parrot" }}

sudo apt -y install expect

{{ end }}

# Remove packages
packages=("nano")
rm_packages=("nano")

for pkg in "${packages[@]}"; do
for pkg in "${rm_packages[@]}"; do
# Check if package is installed
if command -v "$pkg" >/dev/null 2>&1; then
echo "$pkg is installed. Removing it now."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ sudo update-alternatives --remove vim /usr/bin/nvim
sudo apt install -y vim

# Update specific packages
# sudo apt update
# sudo apt install -y codium
# apt is already updated in the previous install script
sudo apt install -y codium

# TODO: Adjust keyboard shortcuts with kinto
# https://github.com/rbreaves/kinto
Expand Down

0 comments on commit f247c0c

Please sign in to comment.