From fe97a8f8e3d2180878a321570c5624ddbec3242f Mon Sep 17 00:00:00 2001 From: Daniel Goldberg Date: Sat, 4 Jan 2020 22:51:08 +0200 Subject: [PATCH] Fixed SC2155 https://github.com/koalaman/shellcheck/wiki/SC2155 --- monkey/monkey_island/linux/install_mongo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monkey/monkey_island/linux/install_mongo.sh b/monkey/monkey_island/linux/install_mongo.sh index 93b0349d1..7afe95ff3 100755 --- a/monkey/monkey_island/linux/install_mongo.sh +++ b/monkey/monkey_island/linux/install_mongo.sh @@ -4,7 +4,8 @@ exists() { command -v "$1" >/dev/null 2>&1 } -export os_version_monkey=$(cat /etc/issue) +os_version_monkey=$(cat /etc/issue) +export os_version_monkey MONGODB_DIR=$1 # If using deb, this should be: /var/monkey/monkey_island/bin/mongodb if [[ ${os_version_monkey} == "Ubuntu 16.04"* ]]; then