Skip to content

Commit 28b75a6

Browse files
[aws-cli] - issue #1224 - installing less for paginated output and avoiding errors (#1226)
Co-authored-by: Daniel Doyle <[email protected]>
1 parent d9c2de0 commit 28b75a6

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

src/aws-cli/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ check_packages() {
6868

6969
export DEBIAN_FRONTEND=noninteractive
7070

71-
check_packages curl ca-certificates gnupg2 dirmngr unzip bash-completion
71+
check_packages curl ca-certificates gnupg2 dirmngr unzip bash-completion less
7272

7373
verify_aws_cli_gpg_signature() {
7474
local filePath=$1

test/aws-cli/less_installed.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Import test library for `check` command
6+
source dev-container-features-test-lib
7+
8+
check "less is installed, pagination works !" less --version
9+
check "less binary installation path" which less
10+
check "Testing paginated output with less" ls -R / | less
11+
12+
# Report result
13+
reportResults

test/aws-cli/scenarios.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"less_installed": {
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
4+
"features": {
5+
"aws-cli": {}
6+
}
7+
}
8+
}

0 commit comments

Comments
 (0)