Always update the critical software, check for skip in a better way.
This commit is contained in:
18
setup.sh
18
setup.sh
@@ -11,7 +11,7 @@ echo "Working in '$DIR'."
|
||||
|
||||
|
||||
skip="false"
|
||||
if [[ "$1" == "skip" || "$2" == "skip" || "$3" == "skip" ]]; then
|
||||
if [[ "$@" == *"skip"* || "$@" == *"-s"* ]]; then
|
||||
skip="true"
|
||||
fi
|
||||
|
||||
@@ -40,16 +40,12 @@ else
|
||||
fi
|
||||
|
||||
|
||||
if [[ "$skip" == "true" ]]; then
|
||||
echo -e "\n`date` - Skipping Installs"
|
||||
else
|
||||
echo -e "\n`date` - Install Software"
|
||||
pkg install -y \
|
||||
openssh tsu vim htop git cronie man zip ncurses-utils \
|
||||
nmap traceroute wget rsync \
|
||||
ffmpeg imagemagick \
|
||||
kotlin php nodejs python libllvm hugo
|
||||
fi
|
||||
echo -e "\n`date` - Install & Updayte Crtical Software"
|
||||
pkg install -y \
|
||||
openssh tsu vim htop git cronie man zip ncurses-utils \
|
||||
nmap traceroute wget rsync \
|
||||
ffmpeg imagemagick \
|
||||
kotlin php nodejs python libllvm hugo
|
||||
|
||||
|
||||
echo -e "\n`date` - BASH Environment"
|
||||
|
||||
Reference in New Issue
Block a user