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