Skip to content

Commit 0fc37ac

Browse files
committed
chore: improve bash compatibility
1 parent a5eee91 commit 0fc37ac

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [1.0.1] - 2025-11-20
4+
5+
### Changed
6+
- Improved compatibility by replacing `mapfile` with more widely supported bash syntax
7+
38
## [1.0.0] - 2025-11-17
49

510
Initial release - Simple AWS SSM connect tool for EC2 instances.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

bin/aws-ssm-connect

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
set -eu
1212

13-
VERSION="1.0.0"
13+
VERSION="1.0.1"
1414
SCRIPT_NAME="$(basename "$0")"
1515

1616
# Colors for output
@@ -240,7 +240,10 @@ main() {
240240
exit 1
241241
fi
242242

243-
mapfile -t LINES <<< "$INSTANCES"
243+
LINES=()
244+
while IFS= read -r line; do
245+
LINES+=("$line")
246+
done <<< "$INSTANCES"
244247

245248
# If only one instance found, connect directly
246249
if [ "${#LINES[@]}" -eq 1 ]; then

0 commit comments

Comments
 (0)