Commit f5230882 authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

prevent install on the wrong architecture

parent 3b00df37
Loading
Loading
Loading
Loading
+6
Changes for server_install_scripts/linux_amd64_install.sh: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/sh

if [ "$(uname -s)" != "Linux" ] || [ "$(uname -m)" != "x86_64" ]; then
  echo "Erreur: ce script installe climax pour Linux 64 bits uniquement." >&2
  exit 1
fi

echo "installation de climax..."
echo ""
installation_path="$HOME/.climax"
+6
Changes for server_install_scripts/macos_arm64_install.sh: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/sh

if [ "$(uname -s)" != "Darwin" ] || [ "$(uname -m)" != "arm64" ]; then
  echo "Erreur: ce script installe climax pour macOS Apple Silicon uniquement." >&2
  exit 1
fi

echo "installation de climax..."
echo ""
installation_path="$HOME/.climax"