Skip to content

Commit c7b41b1

Browse files
committed
Fix linting errors
1 parent db4c23f commit c7b41b1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/fixmongo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo "RG_SRC=$RG_SRC"
2525
echo "S3_SOURCE=$S3_SOURCE"
2626

2727
# First check if the IP at which mongod is listening is correct
28-
mymongoip=$(cat /etc/mongod.conf | sed -n -e 's/bindIp: \([^,]*\).*/\1/p' | sed -e 's/\s*//')
28+
mymongoip=$(sed -n -e 's/bindIp: \([^,]*\).*/\1/p' /etc/mongod.conf | sed -e 's/\s*//')
2929
echo "Mongod configured to listen at $mymongoip"
3030
myip=$(wget -q -O - http://169.254.169.254/latest/meta-data/local-ipv4)
3131
echo "Private IP of this machine is $myip"

scripts/fixsecrets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ echo "Fixing secrets...(fixsecrets.sh v$version)"
66
echo "RG_HOME=$RG_HOME"
77

88
old_secrets=$(docker secret ls | grep -i sp2prod | awk '{print $1}')
9-
if [ ! -z "$old_secrets" ]; then
9+
if [ -n "$old_secrets" ]; then
1010
echo "Found old secrets. Removing..."
1111
echo "$old_secrets" |
1212
while IFS=$'\n' read -r mysecret; do

0 commit comments

Comments
 (0)