aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-08-06 10:45:37 +0530
committersinanmohd <sinan@firemail.cc>2023-08-06 11:21:12 +0530
commit47e5a829412fe0ffc7c576cb8e033e00c25b3244 (patch)
treea5a70b570c0d2f96c51792b53501e69d319006c5
parent253213e9dae4cfd6b7b5406d5a53be23553cb7b8 (diff)
damb: simpler shell pattern
-rwxr-xr-xdamb3
1 files changed, 1 insertions, 2 deletions
diff --git a/damb b/damb
index c5b3fe9..8ae40f0 100755
--- a/damb
+++ b/damb
@@ -174,8 +174,7 @@ write_kv()
val="$(trim "$2")"
case "$key" in
- [![:cntrl:][:print:]]*) ;; # check for unicode chars
- *) key="$(gen_ico "$val") ${key}"
+ [[:print:]]*) key="$(gen_ico "$val") ${key}" ;;
esac
parse_keys getval "$key" > /dev/null &&