Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

Commit aa1e416

Browse files
kadigergomichaelwittig
authored andcommitted
changing aws command line detection to make it silent (#127)
1 parent cc559cf commit aa1e416

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

authorized_keys_command.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if [ -z "$1" ]; then
55
fi
66

77
# check if AWS CLI exists
8-
if ! which aws; then
8+
if ! [ -x "$(which aws)" ]; then
99
echo "aws executable not found - exiting!"
1010
exit 1
1111
fi

import_users.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function log() {
55
}
66

77
# check if AWS CLI exists
8-
if ! which aws; then
8+
if ! [ -x "$(which aws)" ]; then
99
log "aws executable not found - exiting!"
1010
exit 1
1111
fi

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export USERADD_PROGRAM
8888
export USERADD_ARGS
8989

9090
# check if AWS CLI exists
91-
if ! which aws; then
91+
if ! [ -x "$(which aws)" ]; then
9292
echo "aws executable not found - exiting!"
9393
exit 1
9494
fi

0 commit comments

Comments
 (0)