Allow skipping the pkg commands.

This commit is contained in:
2025-08-14 16:36:43 -07:00
parent e27924f062
commit 2324acb6d6

View File

@@ -9,11 +9,13 @@ cd $DIR
DIR="`pwd`"
echo "Working in '$DIR'."
# Disable this since it can be timely.
#echo -e "\n`date` - Upgrade Package Repos"
#
#pkg update &&
# pkg upgrade -y
if [[ $1 == "skip" ]]; then
echo "\n`date` - Skipping Updates"
else
echo -e "\n`date` - Upgrade Package Repos"
pkg update &&
pkg upgrade -y
fi
echo -e "\n`date` - Check Storage Permission"
@@ -30,13 +32,16 @@ else
echo "Everything looks good already, pal."
fi
if [[ $1 == "skip" ]]; then
echo "\n`date` - Skipping Installs"
else
echo -e "\n`date` - Install Software"
pkg install -y \
openssh tsu vim htop git cronie man zip \
nmap traceroute wget \
ffmpeg imagemagick \
kotlin php nodejs python libllvm hugo
fi
echo -e "\n`date` - BASH Environment"
@@ -68,8 +73,8 @@ fi
ln -s ~/storage/shared/TRASH ~/TRASH
if [[ ! -d ~/Code && ! -d ~/storage/shared/Code ]]; then
mkdir -pv ~/storage/shared/Code
ln -s ~/storage/shared/Code ~/Code
mkdir -pv ~/Code
ln -s ~/Code ~/storage/shared/Code
fi
echo -e "\n`date` - Cleanup"