Work on scripts.

master
DominikDeak 4 years ago
parent a7ced90f10
commit 68ed738392
No known key found for this signature in database
GPG Key ID: 85514EC0CCE7007C
  1. 11
      Scripts/Install/InstallDarwin.sh
  2. 4
      Scripts/Install/InstallLinux.sh

@ -2,19 +2,18 @@
install() {
sudo xcode-select --install || exit 1
sudo xcode-select --install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" || exit 1
brew install python git cmake libsodium openssl || exit 1
xargs brew install < "${installToolsPath}/PackageListBrew.txt" || exit 1
sudo pip3 install -r "${installToolsPath}/PackageListPython.txt" || exit 1
}
upgrade() {
brew upgrade || exit 1
xargs brew upgrade < "${installToolsPath}/PackageListBrew.txt" || exit 1
sudo pip3 install -r "${installToolsPath}/PackageListPython.txt" --upgrade || exit 1
@ -24,9 +23,9 @@ set -o nounset
installToolsPath="$(cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)"
if [ "${1}" = "--upgrade" ]; then
if [ "${1-}" = "--upgrade" ]; then
upgrade
elif [ -z "${1}" ]; then
elif [ -z "${1-}" ]; then
install
else
echo "error: Invalid argument. Use '--upgrade' switch to upgrade packages, or none to install packages."

@ -22,9 +22,9 @@ set -o nounset
installToolsPath="$(cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)"
if [ "${1}" = "--upgrade" ]; then
if [ "${1-}" = "--upgrade" ]; then
upgrade
elif [ -z "${1}" ]; then
elif [ -z "${1-}" ]; then
install
else
echo "error: Invalid argument. Use '--upgrade' switch to upgrade packages, or none to install packages."

Loading…
Cancel
Save