Skip to content

Commit e187d76

Browse files
committed
fix: fix bash 3.2 error
1 parent 5202b12 commit e187d76

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG
22

3-
## [1.0.1] - 2024-01-28
3+
## [1.0.1] - 2024-01-29
44

55
### Fixed
66

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# [Sqids Bash](https://sqids.org/bash)
22

3+
![GitHub Release](https://img.shields.io/github/v/release/sqids/sqids-bash)
34
[![Tests](https://github.com/sqids/sqids-bash/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/sqids/sqids-bash/actions/workflows/tests.yml)
5+
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/sqids/sqids-bash/total)
46

57
[Sqids](https://sqids.org/bash) (*pronounced "squids"*) is a small library that lets you **generate unique IDs from numbers**. It's good for link shortening, fast & URL-safe ID generation and decoding back into numbers for quicker database lookups.
68

src/sqids

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,8 @@ joinchars() {
603603

604604
# usage: lower "AbCdE" -> "abcde"
605605
lower() {
606-
__RETURN="${1,,}"
606+
__RETURN=$(echo "$1" | tr '[:upper:]' '[:lower:]')
607+
# __RETURN="${1,,}" # does not work with bash 3.2
607608
}
608609

609610
# usage: shuffle "abcdefg" -> "bcefgad"

0 commit comments

Comments
 (0)