From 5eee608f623042192a45c556c8766559c7dede0e Mon Sep 17 00:00:00 2001 From: Gary Date: Sat, 11 Jun 2016 00:37:56 +0100 Subject: [PATCH] Fixed bash griefing over postifx-compatible conditional compounds (#2159) --- tools/deployment/make_linux_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/deployment/make_linux_package.sh b/tools/deployment/make_linux_package.sh index b2d8c1a1..b1fb1f92 100755 --- a/tools/deployment/make_linux_package.sh +++ b/tools/deployment/make_linux_package.sh @@ -120,7 +120,7 @@ function main() { cp $OSQUERY_EXAMPLE_CONFIG_SRC $INSTALL_PREFIX$OSQUERY_EXAMPLE_CONFIG_DST cp $PACKS_SRC/* $INSTALL_PREFIX/$PACKS_DST - if [ $OSQUERY_CONFIG_SRC != "" ] && [ -f $OSQUERY_CONFIG_SRC ]; then + if [[ $OSQUERY_CONFIG_SRC != "" ]] && [[ -f $OSQUERY_CONFIG_SRC ]]; then log "config setup" cp $OSQUERY_CONFIG_SRC $INSTALL_PREFIX/$OSQUERY_ETC_DIR/osquery.conf fi @@ -153,7 +153,7 @@ function main() { fi POSTINST_CMD="" - if [ $OSQUERY_POSTINSTALL != "" ] && [ -f $OSQUERY_POSTINSTALL ]; then + if [[ $OSQUERY_POSTINSTALL != "" ]] && [[ -f $OSQUERY_POSTINSTALL ]]; then POSTINST_CMD="--after-install $OSQUERY_POSTINSTALL" fi