Repository: static-web-server/static-web-server (language: rust)

Issue:
sh: 90: local: 2.22.1: bad variable name
**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**

```sh
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | sh
```

**Logs/Screenshots**
If applicable, add logs or screenshots to help explain your problem.

<img width="527" alt="image" src="https://github.com/static-web-server/static-web-server/assets/11925432/b43fb429-9e8a-4c6a-a34a-ba54685ff511">


**Environment and Specs**
 - static-web-server: version from get.static-web-server.net
 - OS: Linux 4.19.0-16-amd64 x86_64



Discussion / hints:
@kzhui125 can you please test the bugfix https://github.com/static-web-server/static-web-server/pull/274 in your Linux? Use the following command:

`curl --proto '=https' --tlsv1.2 -sSfL https://raw.githubusercontent.com/static-web-server/static-web-server/fix-installer-script/scripts/installer.sh | sh`

Fix patch:
diff --git a/scripts/installer.sh b/scripts/installer.sh
index 85bbbd84..6b4d6cdf 100755
--- a/scripts/installer.sh
+++ b/scripts/installer.sh
@@ -68,9 +68,14 @@ main() {
     local _filename="static-web-server-v$version-$_arch"
     local _url="https://github.com/static-web-server/static-web-server/releases/download/v$version/$_filename.$_ext"
 
+    local _download_file=$(mktemp -d -t sws.XXXXXXXXXX)
+
     _err=$(curl --proto '=https' --tlsv1.2 -sSf --location $_url \
-        | sudo tar zxf - -C "$local_bin/" --strip-components 1 "$_filename/static-web-server" 2>&1)
-    ensure chmod u+x "$local_bin/static-web-server"
+        | tar zxf - -C "$_download_file/" --strip-components 1 "$_filename/static-web-server" 2>&1)
+    ensure chmod u+x "$_download_file/static-web-server"
+
+    echo "Copying SWS pre-compiled binary to $local_bin..."
+    sudo cp -ax "$_download_file/static-web-server" $local_bin
 
     local _status=$?
 
@@ -84,12 +89,13 @@ main() {
     if $_ansi_escapes_are_valid; then
         printf "\33[1minfo:\33[0m pre-compiled binary installed on $local_bin/static-web-server\n" 1>&2
     else
-        printf '%s\n' 'info: pre-compiled binary installed on $local_bin/static-web-server' 1>&2
+        printf '%s\n' "info: pre-compiled binary installed on $local_bin/static-web-server" 1>&2
     fi
 
-    local sws=$(static-web-server --version)
-    echo  "$sws was installed successfully!" 1>&2
-    echo "If you want to uninstall SWS then just remove it from its location." 1>&2
+    ensure $local_bin/static-web-server --version
+
+    echo "SWS was installed successfully!" 1>&2
+    echo "To uninstall SWS just remove it from its location." 1>&2
 
     return "$_status"
 }
@@ -194,9 +200,9 @@ get_architecture() {
 
     case "$_ostype" in
 
-        # Android)
-        #     _ostype=linux-android
-        #     ;;
+        Android)
+            _ostype=linux-android
+            ;;
 
         Linux)
             check_proc
@@ -208,9 +214,9 @@ get_architecture() {
             _ostype=unknown-freebsd
             ;;
 
-        # NetBSD)
-        #     _ostype=unknown-netbsd
-        #     ;;
+        NetBSD)
+            _ostype=unknown-netbsd
+            ;;
 
         # DragonFly)
         #     _ostype=unknown-dragonfly
@@ -220,9 +226,9 @@ get_architecture() {
             _ostype=apple-darwin
             ;;
 
-        # illumos)
-        #     _ostype=unknown-illumos
-        #     ;;
+        illumos)
+            _ostype=unknown-illumos
+            ;;
 
         MINGW* | MSYS* | CYGWIN* | Windows_NT)
             _ostype=pc-windows-gnu


Test patch: