Non-letters are not allowed in shell function names.
This commit is contained in:
parent
4396394313
commit
3ffd20c1fa
1 changed files with 6 additions and 2 deletions
|
@ -5,7 +5,8 @@ install_osx() {
|
|||
brew install pkg-config pcre libpng libedit sdl2 freetype2 sdl2_ttf \
|
||||
vde cmake gnu-getopt coreutils
|
||||
}
|
||||
install_arch-linux() {
|
||||
|
||||
install_arch_linux() {
|
||||
sudo pacman -S --noconfirm pkgconf
|
||||
sudo pacman -S --noconfirm pcre libpng libedit
|
||||
sudo pacman -S --noconfirm mesa
|
||||
|
@ -65,9 +66,12 @@ install_clang64() {
|
|||
|
||||
|
||||
case "$1" in
|
||||
osx|arch-linux|linux|mingw64|ucrt64|clang64)
|
||||
osx|linux|mingw64|ucrt64|clang64)
|
||||
install_"$1"
|
||||
;;
|
||||
arch-linux)
|
||||
install_arch_linux
|
||||
;;
|
||||
*)
|
||||
echo "$0: Need an operating system name: osx, arch-linux, linux, mingw64 or ucrt64"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Reference in a new issue