]> git.plutz.net Git - confetti/commitdiff
use $upcase constant only in its function
authorPaul Hänsch <paul@plutz.net>
Mon, 15 Apr 2024 12:22:43 +0000 (14:22 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 15 Apr 2024 12:22:43 +0000 (14:22 +0200)
cards/export_csv.sh
cards/index.cgi
cards/list.sh
courses/index.cgi

index 9ba8993372a239b197f50419d8ecfae61406ca98..b566c034d3bbec750d5d57d99f1b2887cce08773 100755 (executable)
@@ -4,8 +4,6 @@
 . $_EXEC/cards/l10n.sh
 . $_EXEC/cards/list.sh
 
-upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
-
 filter="$(GET f)"
 order="$(GET o)"
 
index 2c9f267e1f6e0345164df1c674fac6b36338c724..5babc9f925ef3f9d5660d2145e18808fe5c976cf 100755 (executable)
@@ -5,8 +5,6 @@
 . $_EXEC/cards/widgets.sh
 . $_EXEC/cards/list.sh
 
-upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
-
 filter="$(GET f)"
 order="$(GET o)"
 edit="$(GET e |PATH)"
index 6e78def7ae2856ee915bcdbcdb67d02cb3b7ee1b..519005c08f780bc5e09dc64717fa72bd46425482 100755 (executable)
@@ -148,6 +148,7 @@ filter_attendance(){
 
 filter_cards(){
   local filter f fex='x;p;'
+  local upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
 
   filter="$(printf %s "${filter}" \
             | sed -E 's;[]\/\(\)\\\$\?\.\+\*\;\[\{\}];\\&;g;
index f860247ad02939df4ecba48916916a7906ea8a7b..57761adf942dd5250c563d2ca0b1d78ff06d82c8 100755 (executable)
@@ -5,8 +5,6 @@
 . $_EXEC/courses/widgets.sh
 . $_EXEC/courses/list.sh
 
-upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
-
 order="$(GET o |grep -m1 -xE 'DOW|TOD')"
 edit="$(GET e |PATH)"