]> git.plutz.net Git - shellwiki/commitdiff
Squashed 'cgilite/' changes from bfef1a0..3a4544b
authorPaul Hänsch <paul@plutz.net>
Tue, 6 Feb 2024 15:21:06 +0000 (16:21 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 6 Feb 2024 15:21:06 +0000 (16:21 +0100)
3a4544b Fix broken range requests when running in dash

git-subtree-dir: cgilite
git-subtree-split: 3a4544b251d7ca6192b3ff7c635a0f1f2efe8285

file.sh

diff --git a/file.sh b/file.sh
index 20990d36474492f700dd5fc60bafc5dbf12f548b..8d810b5d472b0a43db49181f1820dd5e4bad1d08 100755 (executable)
--- a/file.sh
+++ b/file.sh
@@ -83,7 +83,7 @@ FILE(){
 
   range="${HTTP_RANGE#bytes=}"
   case "$range" in
-    *[^0-9]*-*|*-*[^0-9]*)
+    *[!0-9]*-*|*-*[!0-9]*)
       range=""
       ;;
     *-)