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